Package: sysfsutils Version: 2.1.0-3 Tags: patch Followup-For: Bug #459240 Another option is to try both with and without terminating newline. E.g. I use the patch below currently:
--- /etc/init.d/sysfsutils.dpkg-orig 2008-03-30 10:35:42.000000000 -0400 +++ /etc/init.d/sysfsutils 2008-03-30 10:33:16.000000000 -0400 @@ -44,7 +44,10 @@ fi elif [ "$f1" -a -n "$f2" -a -z "$f3" ]; then if [ -f "/sys/$f1" ]; then - echo -n "$f2" > "/sys/$f1" + # Some fields need a terminating newline, others + # need the terminating newline to be absent :-( + echo -n "$f2" > "/sys/$f1" 2>/dev/null || + echo "$f2" > "/sys/$f1" else log_failure_msg "unknown attribute $f1" fi -- Stefan -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores) Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages sysfsutils depends on: ii libc6 2.7-6 GNU C Library: Shared libraries ii libsysfs2 2.1.0-3 interface library to sysfs sysfsutils recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]