Package: laptop-mode-tools Version: 1.10-1 Severity: normal Tags: patch The above file doesn't necessarily exist, so sed spits out an error message. This gets rid of it:
--- /usr/sbin/laptop_mode 2005-08-25 05:54:56.000000000 +0200 +++ laptop_mode 2005-10-24 09:46:18.000000000 +0200 @@ -682,7 +679,8 @@ if [ "$WAS_ACTIVE" -eq 0 ] ; then # Coming from inactive state: save last known mount options for the device. echo Updating /var/run/laptop-mode-nolm-mountopts. > $OUTPUT - sed -i "s|^$DEV .*$||" /var/run/laptop-mode-nolm-mountopts + [ -f /var/run/laptop-mode-nolm-mountopts ] && \ + sed -i "s|^$DEV .*$||" /var/run/laptop-mode-nolm-mountopts echo $DEV $OPTS >> /var/run/laptop-mode-nolm-mountopts else echo Not updating /var/run/laptop-mode-nolm-mountopts because laptop mode was already active. > $OUTPUT Cheers, -- Guido -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14-rc4 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages laptop-mode-tools depends on: ii powermgmt-base 1.22 Common utils and configs for power Versions of packages laptop-mode-tools recommends: ii hdparm 6.1-7 tune hard disk parameters for high ii pbbuttonsd 0.7.2-1 PBButtons daemon to handle special -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]