pkg://apmd_3.2.2-8.1_i386.deb:50716/postinst
info downloads
#!/bin/sh
#
# This is the postinst script for the Debian GNU/Linux apmd package
#
# Written by Dirk Eddelbuettel <edd@debian.org>
# Debconf changes added by Chris Hanson <cph@debian.org>
set -e
umask 022
case "${1}" in
(configure)
. /usr/share/debconf/confmodule || exit 0
db_stop
if [ -z "$(ls /etc/apm/suspend.d/*hwclock 2> /dev/null)" ]; then
mkdir -p /etc/apm/suspend.d
ln -sf ../scripts.d/hwclock /etc/apm/suspend.d/99hwclock
fi
if [ -z "$(ls /etc/apm/resume.d/*hwclock 2> /dev/null)" ]; then
mkdir -p /etc/apm/resume.d
ln -sf ../scripts.d/hwclock /etc/apm/resume.d/00hwclock
fi
;;
(abort-upgrade|abort-remove|abort-deconfigure)
;;
(*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Automatically added by dh_installinit
if [ -x "/etc/init.d/apmd" ]; then
update-rc.d apmd defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d apmd start || exit $?
else
/etc/init.d/apmd start || exit $?
fi
fi
# End automatically added section
exit 0