Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
#!/bin/bash
2
# Skip excecution unless the date has changed from the previous run
3
if test -r /var/spool/anacron/cron.daily; then
4
    day=`cat /var/spool/anacron/cron.daily`
5
fi
6
if [ `date +%Y%m%d` = "$day" ]; then
7
    exit 0;
8
fi
9
 
10
# Skip excecution unless AC powered
11
if test -x /usr/bin/on_ac_power; then
12
    /usr/bin/on_ac_power &> /dev/null
13
    if test $? -eq 1; then
14
    exit 0
15
    fi
16
fi
17
/usr/sbin/anacron -s