From de22959472fcf822924b362d8ce17b107faec0b6 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 03:01:39 +0000 Subject: auto-import changelog data from apmd-3.0final-33.src.rpm Tue Jun 26 2001 Bernhard Rosenkraenzer 3.0final-33 - Add pre-suspend and pre-resume hooks (#44603, #45706) Mon Jun 25 2001 Bernhard Rosenkraenzer 3.0final-32 - Add possibility to unload network modules on suspend, required for 3c59x (RFE #45706) Sat May 12 2001 Than Ngo - fix problem after a suspend the reinitialization of the network card fails. - clean up specfile Tue Apr 10 2001 Bernhard Rosenkraenzer - If we need to lock the screen at suspend and we're running KDE, use a DCOP call rather than launching xscreensaver - Add hooks to stop services when switching to battery power and to restart them when we return to line power - Add hooks to stop services when running short of battery power and to restart them when we return to line power - Add maestro and cs4281 to the default SOUNDMODULES, they're quite common --- diff --git a/.cvsignore b/.cvsignore index fa07ea0..a8974a7 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1 @@ -apmd-scripts-1.4.12.tar.bz2 apmd_3.0final-1.tar.gz diff --git a/apmd.conf b/apmd.conf new file mode 100644 index 0000000..8b4b9c3 --- /dev/null +++ b/apmd.conf @@ -0,0 +1,91 @@ +APMSCRIPTS=/etc/sysconfig/apm-scripts + +# make an entry in the logfiles whenever the percentage of +# battery power changes below the value specified here +LOGPERCENTCHANGE=10 + +# warn on specified remainig battery percentage, use negative values +# to disable this feature +WARNPERCENT=5 + +# use -W to warn all users in a critical power state +ADDPARAMS="-W" + +# if you have problems with your X display after returning from suspend mode +# give CHANGEVT the number of the virtual terminal your X-Server runs on +#CHANGEVT="7" + +# If you set this to yes, the clock will be synced with the hardware clock +# when the computer returns from suspend mode. +CLOCK_SYNC="yes" + +# Some broken BIOSes, like those found in early Gericom 3xC notebooks, +# won't wake up harddisks from suspend to disk unless they're set to PIO mode +# and 16-bit. +# Don't activate the following two lines unless you're getting +# "hda: lost interrupt" after returning from a suspend to disk. +#HDPARM_AT_SUSPEND="-q -X0 -q -c0 -q -d0 -q -u0 -q -S0" +#HDPARM_AT_RESUME="-q -X66 -q -c1 -q -d1 -q -u1 -q -S30" + +# the error-beep of your terminal might be set to the default values after a +# resume so set TERMINALBEEP to "yes" to restore the values in +# /etc/sysconfig/keyboard +TERMINALBEEP="no" + +# if your sound sometimes doesn't work after a resume set RESTORESOUND to "yes"; +# this will kill all sound applications, remove and start the $SOUNDMODULES +# again, and, if you also set $RESTORESOUNDPROGS to "yes", restart the +# sound applications as the correct user and on the correct display +RESTORESOUND="no" +RESTORESOUNDPROGS="no" +SOUNDMODULES="sb uart401 sound soundcore maestro cs4281" + +# I got frequent problems mainly with scsi-pcmcia-cards on the cardbus. Use +# PCMCIARESTART="yes" to stop the whole pcmcia-subsystem on a suspend and +# to start it again after a resume. This can slow down your suspend and resume +# process. Use PCMCIAWAIT to wait with the suspend until the pccard is removed +# from the system. +# Some BIOSes are too buggy to handle cardctl suspend and cardctl resume +# properly, in these cases cardctl eject and cardctl insert can be used instead. +# However, this actually ejects the card on hardware supporting it, so if +# the BIOS isn't buggy, it shouldn't be used. Set PCMCIABIOSBUG to yes if +# you are experiencing problems with PCMCIA cards after a resume. +# Since buggy BIOSes seem to be far more common than hardware that can eject +# PCMCIA cards (and it doesn't make a difference on systems that don't have +# either), it is enabled by default. +PCMCIARESTART="no" +PCMCIABIOSBUG="yes" +PCMCIAWAIT="no" + +# Set ANACRON_ON_BATTERY to yes if you want to run anacron after a resume even +# if you're on battery power. +ANACRON_ON_BATTERY="no" + +# Set LOCK_X to yes if you want to lock all your X displays at suspend +LOCK_X="no" + +# If NET_RESTART is set to yes, the network will be shut down at suspend and +# restarted at resume. +# This is especially useful if you're using DHCP, but usually won't hurt. +NET_RESTART="yes" + +# If NETFS_RESTART is set to yes, NFS filesystems will be unmounted at +# suspend, and remounted at resume (if possible). +NETFS_RESTART="yes" + +# If you wish to stop any services when going to battery power (and restart them when +# going to line power), list them in POWER_SERVICES. +# Any service started using the init scripts can be listed (the APM script runs +# "/sbin/service ... stop" for each of the services). +# If you want to stop/restart any services that are not started by the init system, +# use an apmcontinue script. +#POWER_SERVICES="atd crond" + +# If you wish to stop any services when running short of battery power (and restart them when +# going to line power), list them in LOWPOWER_SERVICES. +# Any service started using the init scripts can be listed (the APM script runs +# "/sbin/service ... stop" for each of the services). +# If you want to stop/restart any services that are not started by the init system, +# use an apmcontinue script. +LOWPOWER_SERVICES="atd crond" + diff --git a/apmd.init b/apmd.init new file mode 100755 index 0000000..01a0c0f --- /dev/null +++ b/apmd.init @@ -0,0 +1,76 @@ +#!/bin/sh +# +# chkconfig: 2345 26 74 +# description: apmd is used for monitoring battery status and logging it via \ +# syslog(8). It can also be used for shutting down the machine when \ +# the battery is low. +# processname: apmd +# config: /etc/sysconfig/apmd +# clock: /etc/sysconfig/clock + +# Don't bother if /proc/apm doesn't exist, kernel doesn't have support for APM. +[ -e /proc/apm ] || exit 0 + +CONFIG=/etc/sysconfig/apmd + +# Source function library. +. /etc/init.d/functions + +RETVAL=0 + +start() { + echo -n $"Starting up APM daemon: " + test -r "$CONFIG" && . "$CONFIG" + daemon /usr/sbin/apmd -p $LOGPERCENTCHANGE -w $WARNPERCENT $ADDPARAMS \ + -P /etc/sysconfig/apm-scripts/apmscript + RETVAL=$? + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/apmd + echo +} + +stop() { + echo -n $"Shutting down APM daemon: " + killproc apmd + RETVAL=$? + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/apmd + echo +} + +dostatus() { + status apmd + RETVAL=$? +} + +restart() { + stop + start + RETVAL=$? +} + +condrestart() { + [ -e /var/lock/subsys/apmd ] && restart || : +} + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + status) + dostatus + ;; + restart|reload) + restart + ;; + condrestart) + condrestart + ;; + *) + echo "Usage: apmd.init {start|stop|status|restart|reload|condrestart}" + exit 1 +esac + +exit $RETVAL diff --git a/apmd.spec b/apmd.spec index 1e8fabf..bd7d665 100644 --- a/apmd.spec +++ b/apmd.spec @@ -2,9 +2,11 @@ Summary: Advanced Power Management (APM) BIOS utilities for laptops. Name: apmd Version: 3.0final -Release: 29 +Release: 33 Source: ftp://ftp.debian.org/debian/dists/unstable/main/source/admin/%{name}_%{version}-1.tar.gz -Source1: apmd-scripts-%{SCRIPT_VERSION}.tar.bz2 +Source1: apmd.init +Source2: apmscript +Source3: apmd.conf Patch: apmd-3.0-FHS.patch Patch1: apmd-typo.patch Patch2: apmd-3.0-obsoleteopts.patch @@ -41,18 +43,17 @@ make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/usr/{bin,include,lib,sbin,share/man/man1,share/man/man8,X11R6/bin,X11R6/man/man1} -mkdir -p $RPM_BUILD_ROOT/etc -make PREFIX=$RPM_BUILD_ROOT/usr APMD_PROXY_DIR=$RPM_BUILD_ROOT/etc install -mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d -mkdir -p $RPM_BUILD_ROOT/etc/sysconfig -cd $RPM_BUILD_ROOT && tar xjf %{SOURCE1} -# hack -rm -f $RPM_BUILD_ROOT/usr/bin/xapm $RPM_BUILD_ROOT%{_mandir}/man1/xapm.1x +mkdir -p $RPM_BUILD_ROOT/etc/{sysconfig/apm-scripts,rc.d/init.d} + +%makeinstall APMD_PROXY_DIR=$RPM_BUILD_ROOT/etc + +install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/apmd +install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/apm-scripts/ +install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/apmd %clean -rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name} +rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add apmd @@ -74,17 +75,36 @@ fi %files %defattr(-,root,root) %doc ANNOUNCE ChangeLog README README.transfer LSM -%{_mandir}/man1/* -%{_mandir}/man8/* -/usr/bin/* -/usr/sbin/* -/usr/include/* -/usr/lib/* +%{_mandir}/man?/* +%{_bindir}/* +%{_sbindir}/* +%{_includedir}/* +%{_libdir}/* %config /etc/rc.d/init.d/apmd %config(noreplace) /etc/sysconfig/apmd %config /etc/sysconfig/apm-scripts/* %changelog +* Tue Jun 26 2001 Bernhard Rosenkraenzer 3.0final-33 +- Add pre-suspend and pre-resume hooks (#44603, #45706) + +* Mon Jun 25 2001 Bernhard Rosenkraenzer 3.0final-32 +- Add possibility to unload network modules on suspend, required for 3c59x + (RFE #45706) + +* Sat May 12 2001 Than Ngo +- fix problem after a suspend the reinitialization of the network card fails. +- clean up specfile + +* Tue Apr 10 2001 Bernhard Rosenkraenzer +- If we need to lock the screen at suspend and we're running KDE, use a DCOP call + rather than launching xscreensaver +- Add hooks to stop services when switching to battery power and to restart them when we + return to line power +- Add hooks to stop services when running short of battery power and to restart them when we + return to line power +- Add maestro and cs4281 to the default SOUNDMODULES, they're quite common + * Thu Feb 15 2001 Trond Eivind Glomsr�d - -change diff --git a/apmscript b/apmscript new file mode 100755 index 0000000..4d63a7e --- /dev/null +++ b/apmscript @@ -0,0 +1,313 @@ +#!/bin/bash +# DO NOT EDIT THIS SCRIPT, CREATE AND EDIT apmcontinue IN THIS DIRECTORY; you +# can put your stuff into apmcontinue for every link you create to apmscript; +# for a start and definitely enough for most laptops we have two links and +# according subroutines defined here: suspend and resume; all other links +# will be redirected directly to apmcontinue which you can create; also +# suspend and resume call apmscript, so you can also do other things (like +# reinitialising some PCMCIA-Card) there; apmcontinue will get the name +# as which it was called as $1; for debugging see the logfiles +# +# If you think something in this script needs to be changed anyway, please report +# it to http://bugzilla.redhat.com/bugzilla/ or bero@redhat.com +# +# This script can be controlled by editing /etc/sysconfig/apmd. + +PROG="$1" +LOCKFILE=/var/lock/subsys/resume +[ -e /etc/sysconfig/keyboard ] && . /etc/sysconfig/keyboard +[ -e /etc/sysconfig/apmd ] && . /etc/sysconfig/apmd +[ -e /etc/sysconfig/clock ] && . /etc/sysconfig/clock +[ -z "$UTC" ] && UTC="no" +[ -z "$CHANGEVT" ] && CHANGEVT="0" +[ -z "$CLOCK_SYNC" ] && CLOCK_SYNC="no" + +CLOCK="" +[ "$UTC" = "yes" -o "$UTC" = "true" -o "$UTC" = 1 ] && CLOCK="-u" + +case "$PROG" in + suspend|standby) + # Remove sound progs and modules if requested + if [ "$RESTORESOUND" = "yes" -o "$RESTORESOUNDPROGS" = "yes" ]; then + # Find all programs using sound and kill them... + rm -rf /var/run/apm-soundprogs + if [ -c /dev/sndstat ]; then + for n in `cat /dev/sndstat 2>/dev/null|grep Open\ by|awk {'print $3'}|uniq`; do + SOUNDPROG=`echo $n|awk -F / {'print $2'}` + SOUNDPID=`echo $n|awk -F / {'print $1'}` + SOUNDUSER=`ls -ld /proc/$SOUNDPID |awk {'print $3'}` + SOUNDDISPLAY=`perl -e 's/\000/\n/g;' -p /proc/$SOUNDPID/environ|grep ^DISPLAY=|cut -d= -f2-` + + # Make sure nobody is playing foul tricks on us + SOUNDPROG=`echo $SOUNDPROG |sed -e "s/|.*//` + + kill $SOUNDPID + ps "$SOUNDPID" &>/dev/null && kill -9 $SOUNDPID + echo "$SOUNDPROG|$SOUNDPID|$SOUNDUSER|$SOUNDDISPLAY" >>/var/run/apm-soundprogs + logger "apmscript: Program $SOUNDPROG ($SOUNDPID) of user $SOUNDUSER on display $SOUNDDISPLAY terminated." + done + fi + for n in `lsof |grep /dev|grep ' 14,'|sed -e 's/ \+/|/g'|cut '-d|' -f1-3`; do + SOUNDPROG=`echo $n |cut '-d|' -f1` + SOUNDPID=`echo $n |cut '-d|' -f2` + SOUNDUSER=`echo $n |cut '-d|' -f3` + SOUNDDISPLAY=`perl -e 's/\000/\n/g;' -p /proc/$SOUNDPID/environ|grep ^DISPLAY=|cut -d= -f2-` + + # Make sure nobody is playing foul tricks on us + SOUNDPROG=`echo $SOUNDPROG |sed -e "s/|.*//` + + kill $SOUNDPID + ps "$SOUNDPID" &>/dev/null && kill -9 $SOUNDPID + echo "$SOUNDPROG|$SOUNDPID|$SOUNDUSER|$SOUNDDISPLAY" >>/var/run/apm-soundprogs + logger "apmscript: Program $SOUNDPROG ($SOUNDPID) of user $SOUNDUSER on display $SOUNDDISPLAY terminated." + done + # We unload the modules later to give the driver some time + # to spin down. + fi + + # Some broken disks won't return from a suspend to disk + # unless they're set to 100% failsafe settings with hdparm. + # Typically, notebooks with SystemSoft MobilePRO BIOS are + # affected by this. + if test "x$HDPARM_AT_SUSPEND" != "x"; then + for i in /proc/ide/hd*; do + DRIVE=/dev/`echo $i |sed -e "s,.*/,,g"` + if test "x`cat $i/media`" = "xdisk"; then + hdparm $HDPARM_AT_SUSPEND $DRIVE + fi + done + fi + sync + + [ "$NETFS_RESTART" = "yes" ] && /etc/rc.d/init.d/netfs stop + if [ "$NET_RESTART" = "yes" ] ; then + /etc/rc.d/init.d/network stop + interfaces=`cat /etc/modules.conf|grep eth[0-9]|sed 's/alias eth[0-9] //g'` + for i in $interfaces; do + /sbin/modprobe -r $i + done + fi + [ "$PCMCIARESTART" = "yes" ] && { + if [ "$PCMCIABIOSBUG" = "yes" ]; then + /sbin/cardctl eject + else + /sbin/cardctl suspend + fi + } + if [ "$PCMCIAWAIT" = "yes" ]; then + until [ `grep "Socket .: empty" /var/run/stab|wc -l` = `grep "Socket" /var/run/stab|wc -l` ]; do + logger "Waiting for pcmcia-device to be removed..." + sleep 10 + done + fi + + while [ -f "$LOCKFILE" ]; do + RESUMEPID=`cat "$LOCKFILE"` + logger "Waiting for resume to be finished ($LOCKFILE gives PID $RESUMEPID)..." + sleep 10 + done + + # Don't try to restore the terminal or lock X if X isn't running... + [ "x`pidof X`" != x ] && { + [ "$CHANGEVT" != "0" ] && chvt 1 + [ "x$LOCK_X" = "xyes" -o "x$LOCK_X" = "x1" ] && { + # Lock X, based on patch from Hannu Martikka + # + w |tail +3 |awk '{print $1, $3}'|grep -v '-'|grep : | \ + sort -u | \ + while read line; do + Usern=`echo $line |awk '{print $1}'` + XDisp=`echo $line |awk '{print $2}'` + if [ "x`/sbin/pidof 'kdeinit: kdesktop'`" != "x" ]; then + # We're running KDE - a dcop call is sufficient. + su $Usern -c "DISPLAY=$XDisp dcop kdesktop KScreensaverIface 'lock()'" + else + # This isn't KDE... Do some ugly stuff. + if [ "x$Usern" = "xroot" ]; then + xlock -display $XDisp &>/dev/null & + else + su $Usern -c "xscreensaver-command -display $XDisp -lock || (xscreensaver -display $XDisp -no-splash &sleep 1; xscreensaver-command -display $XDisp -lock) || (xlock -display $XDisp &)" &>/dev/null + fi + fi + done + } + } + + # Unload sound modules if necessary + if [ "$RESTORESOUND" = "yes" -o "$RESTORESOUNDPROGS" = "yes" ]; then + # soundoff is from the commercial OSS drivers, don't worry + # if you don't have it. (Nobody sane does ;) ). + [ -x /usr/bin/soundoff ] && /usr/bin/soundoff + [ -x /usr/sbin/soundoff ] && /usr/sbin/soundoff + [ -x /usr/local/bin/soundoff ] && /usr/local/bin/soundoff + [ -x /usr/local/sbin/soundoff ] && /usr/local/sbin/soundoff + rm -rf /var/run/apm-soundmodules + for m in $SOUNDMODULES; do + if lsmod |grep -q "^$m " &>/dev/null; then + rmmod $m + echo $m >>/var/run/apm-soundmodules + fi + done + fi + sync + + [ -f /etc/sysconfig/apm-scripts/apmcontinue ] && . /etc/sysconfig/apm-scripts/apmcontinue "$PROG" + + sync + ;; + + resume) + # If HDPARM_AT_RESUME is set, the user has a broken disk. + # We'd better wake it up manually. :/ + if test "x$HDPARM_AT_RESUME" != "x"; then + for i in /proc/ide/hd*; do + DRIVE=/dev/`echo $i |sed -e "s,.*/,,g"` + if test "x`cat $i/media`" = "xdisk"; then + hdparm -q -S0 $DRIVE + fi + done + fi + # as some displays don't like being waked up from power-off + # state directly into graphics mode, we can switch to console + # 1 during suspend and back to console n (where we assume X11 + # is running) after a resume; also the setting of the console + # beep and the whole sound system can be confused; see + # /etc/sysconfig/apm for a detailed description of the + # variables used here. + + echo $$ >> "$LOCKFILE" + if [ "$TERMINALBEEP" != "" ]; then + # first we set the beep-length + for t in 1 2 3 4 5 6 7 8 9; do + setterm -blength $BEEPLENGTH >/dev/tty$t + done + fi + if [ "$RESTORESOUND" = "yes" -o "$RESTORESOUNDPROGS" = "yes" ]; then + # Get the sound modules back up... + # soundon is from the commercial OSS drivers, don't worry + # if you don't have it. + [ -x /usr/bin/soundon ] && /usr/bin/soundon + [ -x /usr/sbin/soundon ] && /usr/sbin/soundon + [ -x /usr/local/bin/soundon ] && /usr/local/bin/soundon + [ -x /usr/local/sbin/soundon ] && /usr/local/sbin/soundon + for m in `cat /var/run/apm-soundmodules`; do + modprobe $m + done + rm -f /var/run/apm-soundmodules + fi + if [ "$RESTORESOUNDPROGS" = "yes" ]; then + # at least we can restart the programs using sound on + # the right display + # If you're using the trial version of OSS, you want to add + #sleep 5 + # here to wait for the trial text + for n in `cat /var/run/apm-soundprogs`; do + SOUNDPROG=`echo $n|cut '-d|' -f1` + SOUNDPID=`echo $n|cut '-d|' -f2` + SOUNDUSER=`echo $n|cut '-d|' -f3` + SOUNDDISPLAY=`echo $n|cut '-d|' -f4` + su --shell="/bin/bash" - "$SOUNDUSER" -c "source /etc/profile;[ -f ~/.bashrc ] && source ~/.bashrc;[ -f ~/.bash_profile ] && source ~/.bash_profile;export DISPLAY="$SOUNDDISPLAY";$SOUNDPROG &" + logger "apmscript: Program $SOUNDPROG started as user $SOUNDUSER on display $SOUNDDISPLAY." + done + rm -f /var/run/apm-soundprogs + fi + + # restore X if necessary + [ "$CHANGEVT" != "0" ] && [ "x`pidof X`" != x ] && chvt "$CHANGEVT" + + if [ "$PCMCIARESTART" = "yes" ] ; then + if [ "$PCMCIABIOSBUG" = "yes" ]; then + /sbin/cardctl insert + else + /sbin/cardctl resume + fi + fi + [ "$NET_RESTART" = "yes" ] && /etc/rc.d/init.d/network start + [ "$NETFS_RESTART" = "yes" ] && /etc/rc.d/init.d/netfs start + sync + + [ -f /etc/sysconfig/apm-scripts/apmcontinue ] && . /etc/sysconfig/apm-scripts/apmcontinue "$PROG" + + # Read the hardware clock + if test $CLOCK_SYNC != "no"; then + hwclock $CLOCK --hctosys + fi + + # 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 + + if test "x$HDPARM_AT_RESUME" != "x"; then + for i in /proc/ide/hd*; do + DRIVE=/dev/`echo $i |sed -e "s,.*/,,g"` + if test "x`cat $i/media`" = "xdisk"; then + hdparm $HDPARM_AT_RESUME $DRIVE + fi + done + fi + + rm -f "$LOCKFILE" + ;; + change) + case $2 in + power) + # Change from battery power to AC power or vice versa. + if [ -n "$POWER_SERVICES" ]; then + if apm |grep -q on-line &>/dev/null; then + what="start" + if [ -n "$LOWPOWER_SERVICES" -a -e /tmp/LOW_POWER ]; then + rm -f /tmp/LOW_POWER + for i in $LOWPOWER_SERVICES; do + /sbin/service $i start + done + fi + else + what="stop" + fi + for i in $POWER_SERVICES; do + /sbin/service $i $what + done + fi + ;; + battery) + # Battery low. If you want to be on the safe side, maybe put + # the harddisk into extreme powersaving, or "apm -s" here. + if [ -n "$LOWPOWER_SERVICES" ]; then + touch /tmp/LOW_POWER + for i in $LOWPOWER_SERVICES; do + /sbin/service $i stop + done + fi + ;; + esac + if [ -f /etc/sysconfig/apm-scripts/apmcontinue ]; then + . /etc/sysconfig/apm-scripts/apmcontinue $@ + fi + ;; + start) + # This occurs at system startup - you usually don't need to do + # anything here. + [ -f /etc/sysconfig/apm-scripts/apmcontinue ] && . /etc/sysconfig/apm-scripts/apmcontinue $@ + ;; + stop) + # This occurs at system shutdown - you usually don't need to do + # anything here. + [ -f /etc/sysconfig/apm-scripts/apmcontinue ] && . /etc/sysconfig/apm-scripts/apmcontinue $@ + ;; + *) + if [ -f /etc/sysconfig/apm-scripts/apmcontinue ]; then + . /etc/sysconfig/apm-scripts/apmcontinue "$PROG" + else + logger "FAIL: Wrong parameter \"$PROG\" in apmscript!" + exit 1 + fi + ;; +esac +exit 0 diff --git a/sources b/sources index 73e9d9b..bcae8ce 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -a173a31d1d531b8abb952c4f00b1adda apmd-scripts-1.4.12.tar.bz2 faa5bcadb9aa6b9e62f0b60d5699b2cd apmd_3.0final-1.tar.gz