]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Redirect grep stderr output when checking for HID to /dev/null.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 1 Nov 2003 20:18:52 +0000 (20:18 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 1 Nov 2003 20:18:52 +0000 (20:18 +0000)
svn-id: @1484

rc.d/rc.sysinit

index d77e37f3bb9483e93b9b257e3678909a385c94eb..5f6bb6b11fafc67de5ff9f753b8c910c7cf96446 100755 (executable)
@@ -185,7 +185,7 @@ fi
 needusbstorage=
 if [ "$usb" = "1" ]; then
        needusbstorage=$(LC_ALL=C cat /proc/bus/usb/devices 2>/dev/null|grep -e "^I.*Cls=08")
-       LC_ALL=C grep -q 'hid' /proc/bus/usb/drivers || run_cmd "Initializing USB HID interface" modprobe hid 2> /dev/null
+       LC_ALL=C grep -q 'hid' /proc/bus/usb/drivers 2> /dev/null || run_cmd "Initializing USB HID interface" modprobe hid 2> /dev/null
         mouseoutput=$(cat /proc/bus/usb/devices 2>/dev/null|grep -E "^I.*Cls=03.*Prot=02")
         kbdoutput=$(cat /proc/bus/usb/devices 2>/dev/null|grep -E "^I.*Cls=03.*Prot=01")
         if [ -n "$kbdoutput" ]; then
This page took 0.033256 seconds and 4 git commands to generate.