Package: wwwoffle
Version: 2.9d-3
Severity: wishlist
Tags: patch
I put this script in if-up.d...
#!/bin/sh -e
# if-up.d script for wwwoffle:
# Called when a new interface comes up
# By Don Marti <[EMAIL PROTECTED]>
# Based on script for Postfix
# by LaMont Jones <[EMAIL PROTECTED]>
# don't bother when lo is configured.
if [ "$IFACE" = "lo" ]; then
exit 0
fi
# If /var isn't mounted yet, silently bail.
if [ ! -d /var/cache/wwwoffle ]; then
exit 0
fi
/usr/bin/wwwoffle -online
And this script in if-post-down.d...
#!/bin/sh -e
# if-post-down.d script for wwwoffle:
# Called when an interface disconnects
# By Don Marti <[EMAIL PROTECTED]>
# Based on script for Postfix
# by LaMont Jones <[EMAIL PROTECTED]>
# If /var isn't mounted yet, silently bail.
if [ ! -d /var/cache/wwwoffle ]; then
exit 0
fi
# If there's no more route to the outside
# after this disconnection, put wwwoffle
# in offline mode.
/sbin/route -n | /bin/grep -q '^0.0.0.0' || /usr/bin/wwwoffle -offline
Works for me and makes my wwwoffle experience better.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.27.7humulus (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages wwwoffle depends on:
ii coreutils 6.10-6 The GNU core utilities
ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii debianutils 2.30 Miscellaneous utilities specific t
ii libc6 2.7-16 GNU C Library: Shared libraries
ii libgnutls26 2.4.2-3 the GNU TLS library - runtime libr
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
wwwoffle recommends no packages.
Versions of packages wwwoffle suggests:
pn htdig | namazu | mnogosearch- <none> (no description available)
ii logrotate 3.7.1-5 Log rotation utility
pn pdnsd <none> (no description available)
-- debconf-show failed
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]