Package: laptop-detect-udeb Version: 0.12.1 Tags: patch The laptop-detect-udeb version in etch do not work, because busybox grep is missing support for -A and -m. This patch solve this by using the new --type feature in dmidecode (implemented since version 2.7, I believe), instead of the -A and -m grep arguments.
--- /usr/sbin/laptop-detect.orig 2005-06-14 13:29:07.000000000 +0200 +++ /usr/sbin/laptop-detect 2007-05-30 00:26:45.000000000 +0200 @@ -12,7 +12,7 @@ if [ -x /usr/sbin/dmidecode ]; then # dmidecode to grab the Chassis type - dmitype=$(dmidecode|grep Chassis -A 10|grep -m1 Type|sed -e 's/.*Type: \(.*\)/\1/') + dmitype=$(dmidecode --type Chassis |grep Type|sed -e 's/.*Type: \(.*\)/\1/') if test "$dmitype" = "Notebook" || test "$dmitype" = "Portable"; then # echo "We're a laptop" >&2; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]