]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
handle kmod translating `-` to `_`
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 11 Jun 2013 22:19:05 +0000 (22:19 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 11 Jun 2013 22:19:05 +0000 (22:19 +0000)
svn-id: @12694

rc.d/rc.sysinit

index 60271b04d32db61cffe2abb87a43555ebdd9a867..102f92630fea976473af63486ca267b635e7a0d7 100755 (executable)
@@ -488,7 +488,7 @@ if ! is_yes "$VSERVER"; then
        # Initialize USB controllers
        usb=0
        if [ -z "$nousb" ] && ! is_fsmounted usbfs /proc/bus/usb; then
-               aliases=$(modprobe_c | awk '/^alias[[:space:]]+usb-controller[[:space:]]+/{ print $3 }')
+               aliases=$(modprobe_c | awk '/^alias[[:space:]]+usb[-_]controller[[:space:]]+/{ print $3 }')
                if [ -n "$aliases" -a "$aliases" != "off" ] ; then
                        modprobe -s usbcore
                        for alias in $aliases ; do
@@ -703,7 +703,7 @@ if ! is_yes "$VSERVER"; then
 
        # Load firewire devices
        if [ -z "$nofirewire" ]; then
-               aliases=$(modprobe_c | awk '/^alias[[:space:]]+ieee1394-controller[[:space:]]+/{ print $3 }')
+               aliases=$(modprobe_c | awk '/^alias[[:space:]]+ieee1394[-_]controller[[:space:]]+/{ print $3 }')
                if [ -n "$aliases" -a "$aliases" != "off" ] ; then
                        for alias in $aliases ; do
                                [ "$alias" = "off" ] && continue
@@ -721,7 +721,7 @@ if ! is_yes "$VSERVER"; then
                        run_cmd "$(nls 'Loading sound module') ($alias)" modprobe -s $alias
                        RETURN=$?
                fi
-               alias=$(modprobe_c | awk '/^alias[[:space:]]+sound-slot-0[[:space:]]+/ { print $3 }')
+               alias=$(modprobe_c | awk '/^alias[[:space:]]+sound[-_]slot[-_]0[[:space:]]+/ { print $3 }')
                if [ -n "$alias" -a "$alias" != "off" ] ; then
                        run_cmd "$(nls 'Loading sound module') ($alias)" modprobe -s $alias
                        RETURN=$?
This page took 0.151348 seconds and 4 git commands to generate.