Package: hotkey-setup
Version: 0.1-17

/etc/init.d/hotkey-setup uses -b /dev/nvram to check whether
the nvram device is present.  nvram is a character device, not
a block device; the test should be -c /dev/nvram.

$ uname -a
Linux thinko 2.6.17.9 #9 Fri Sep 8 18:16:07 PDT 2006 i686 GNU/Linux

$ ls -l /dev/nvram
crw-rw---- 1 root root 10, 144 2006-09-12 23:02 /dev/nvram

$ [ -c /dev/nvram ] && echo present
present

A patch:

diff -ur hotkey-setup-0.1/debian/init.d hotkey-setup-0.1-new/debian/init.d
--- hotkey-setup-0.1/debian/init.d      2006-04-29 12:09:27.000000000 -0700
+++ hotkey-setup-0.1-new/debian/init.d  2006-09-12 23:08:52.000000000 -0700
@@ -15,7 +15,7 @@
        if [ ! -c /dev/input/uinput ]; then
            modprobe uinput
        fi
-       if [ ! -b /dev/nvram ]; then
+       if [ ! -c /dev/nvram ]; then
            modprobe nvram
        fi
        /usr/sbin/thinkpad-keys && touch $THINKPAD_LOCKFILE


Tom.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to