Blame | Last modification | View Log | RSS feed
#!/bin/bash# Skip excecution unless the date has changed from the previous runif test -r /var/spool/anacron/cron.daily; thenday=`cat /var/spool/anacron/cron.daily`fiif [ `date +%Y%m%d` = "$day" ]; thenexit 0;fi# Skip excecution unless AC poweredif test -x /usr/bin/on_ac_power; then/usr/bin/on_ac_power &> /dev/nullif test $? -eq 1; thenexit 0fifi/usr/sbin/anacron -s