#!/bin/sh -e

# See /usr/share/doc/wwwoffle/README.Debian for reasons not to 
# restart wwwoffle here.

# put wwwoffle in online mode
/usr/bin/wwwoffle -c /etc/wwwoffle/wwwoffle.conf -online

# optionally fetch marked pages
if grep -qsx fetch /etc/wwwoffle/wwwoffle.options; then
  /usr/bin/wwwoffle -c /etc/wwwoffle/wwwoffle.conf -fetch &
fi

