pkg://apmd_3.2.2-3_powerpc.deb:60668/config
info downloads
#!/bin/sh
# Copyright (c) 2001, 2002 Massachusetts Institute of Technology
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this package; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
set -e
. /usr/share/debconf/confmodule
# Remove old variables no longer in use.
db_unregister apmd/etc-apmd-md5 || true
db_unregister apmd/hdparm-drive || true
db_unregister apmd/hdparm-spindown || true
CONFFILE=/etc/apm/apmd_proxy.conf
NFM="no"
if [ "${1}" = "configure" ]; then
if dpkg --compare-versions "${2}" "lt-nl" "3.0.2-1.16"; then
NFM="yes"
elif [ -e "/etc/modutils/apmd" ]; then
NFM="yes"
fi
fi
if [ "${NFM}" = "yes" ]; then
db_input medium apmd/hdparm-removed || true
db_go || true
fi
# Rejection of APM events doesn't yet work; see apmd_proxy.
#
#db_input medium apmd/overwrite-config-file || true
#db_go || true
#
#db_get apmd/overwrite-config-file || true
#if [ "${RET}" = "true" ]; then
#
# if [ -e "${CONFFILE}" ]; then
# # Read the values from the config file and save them in the
# # debconf database. This preserves them upon reconfiguration or
# # reinstallation.
# . "${CONFFILE}" || true
# if [ -n "${SUSPEND_ON_AC+foo}" ]; then
# db_set apmd/suspend-on-ac "${SUSPEND_ON_AC}" || true
# fi
# fi
#
# db_beginblock || true
#
# db_input medium apmd/suspend-on-ac || true
# db_go || true
#
# db_endblock || true
#
#fi
db_stop
# Stop the daemon; it will be restarted in the postinst.
if [ "${1}" = "reconfigure" -a -x "/etc/init.d/apmd" ]; then
/etc/init.d/apmd stop
fi