mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
13 lines
276 B
Bash
13 lines
276 B
Bash
#!/bin/sh
|
|
# Check whether 0anacron was run today already
|
|
if test -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
|
|
|
|
# TODO add check to see if we're running on battery and exit
|
|
|
|
anacron -s
|