File ip-up.wwwoffle of Package wwwoffle

#!/bin/bash
#
# file for bringing up wwwoffle when network is back
# thanks to Martin Jost
# enhanced by Klaus Singvogel <kssingvo@suse.de>

# check if wwwoffle exists (is installed) and if it is configured to run
if [ -x /usr/bin/wwwoffle ] && /sbin/chkconfig -c wwwoffle ; then
   # Restart to notify of new DNS (is there a better solution ?)
   # in case of wake up from suspend-to-xxx a hard restart needs to be done
   /etc/rc.d/wwwoffle restart

   # Set the WWWOFFLE HTTP proxy server online.
   /usr/bin/wwwoffle -online -c /etc/wwwoffle/wwwoffle.conf

   # Get the WWWOFFLE HTTP proxy server to fetch requested URLs.
   /usr/bin/wwwoffle -fetch -c /etc/wwwoffle/wwwoffle.conf &
fi
openSUSE Build Service is sponsored by