#!/bin/sh
# -*- Mode: shell-script -*-

[ -e /etc/sysconfig/apmd ] && . /etc/sysconfig/apmd

# Finally, run anacron to catch up cron stuff we missed...
# If anacron is installed and we're on AC power or we want
# to run it even in battery mode.
if [ -x /usr/sbin/anacron ]; then
    if apm |grep -q on-line &>/dev/null; then
	/usr/sbin/anacron
    elif test "x$ANACRON_ON_BATTERY" = "xyes"; then
	/usr/sbin/anacron
    fi
fi
