]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
check things first that do not involve fs; use grep -F where regexp match not needed
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 30 May 2013 17:33:11 +0000 (17:33 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 30 May 2013 17:33:11 +0000 (17:33 +0000)
svn-id: @12663

rc.d/rc.sysinit

index e63cbf7dd5475f35615cc41a5db4c37eeb42ecd8..aa644444488218867d34082f8b93e674dfbe7d16 100755 (executable)
@@ -161,7 +161,7 @@ check_root_fs() {
 }
 
 # boot logging to /var/log/boot.log. install showconsole package to get it.
-if [ -x /sbin/blogd ] && ! is_no "$RC_BOOTLOG"; then
+if ! is_no "$RC_BOOTLOG" && [ -x /sbin/blogd ]; then
        RC_BOOTLOG=1
 else
        RC_BOOTLOG=
@@ -343,7 +343,7 @@ if ! is_yes "$VSERVER"; then
        if [ "$usb" = "1" ]; then
                needusbstorage=$(cat /proc/bus/usb/devices 2>/dev/null | grep -e "^I.*Cls=08" 2>/dev/null)
                if [ "$(kernelverser)" -lt "002006" ]; then
-                       grep -q 'hid' /proc/bus/usb/drivers 2>/dev/null || run_cmd "Initializing USB HID interface" modprobe hid 2> /dev/null
+                       grep -Fq '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" 2>/dev/null)
                        kbdoutput=$(cat /proc/bus/usb/devices 2>/dev/null|grep -E "^I.*Cls=03.*Prot=01" 2>/dev/null)
                        if [ -n "$kbdoutput" ]; then
This page took 0.097914 seconds and 4 git commands to generate.