Changeset 1829 in MondoRescue
- Timestamp:
- Dec 1, 2007, 10:44:48 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/rootfs/sbin/init
r1826 r1829 157 157 HandleCDROMorFloppies() { 158 158 # Just in case we have an iLO ensure we will map it correctly 159 grep -q "usb-storage " $DENY_MODS 160 if [ $? -eq 0 ]; then 161 return 162 fi 159 163 echo "Activating a potential USB Storage device" 160 if [ - e "/tmp/USE-UDEV" ]; then161 if [ - f usb-storage.ko ] || [ -f usb-storage.ko.gz ]; then164 if [ -f usb-storage.ko ] || [ -f usb-storage.ko.gz ]; then 165 if [ -e "/tmp/USE-UDEV" ] ; then 162 166 modprobe -q usb-storage 163 fi 164 else 165 if [ -f usb-storage.ko ] || [ -f usb-storage.ko.gz ]; then 167 else 166 168 insmod usb-storage.ko* 167 169 fi … … 391 393 # Prepare minimal USB env in case we have USB kbd such as with iLO 392 394 [ -d /proc/bus/usb ] && ! grep -q /proc/bus/usb /proc/mounts && mount -t usbfs none /proc/bus/usb 395 grep -Eq 'uhcd_hci |usbhid |usbcore ' $DENY_MODS 396 if [ $? -eq 0 ]; then 397 return 398 fi 393 399 if [ -e "/tmp/USE-UDEV" ] ; then 394 400 if [ -f uhcd_hci.ko ] || [ -f uhcd_hci.ko.gz ]; then … … 570 576 for m in `find /lib/modules -name '*.ko*'`; do 571 577 j=`basename $m | sed 's/\.ko.*$//'` 578 grep -q '$j ' $DENY_MODS 579 if [ $? -eq 0 ]; then 580 continue 581 fi 582 echo "Probing $j..." 572 583 modprobe -q $j 573 584 done … … 583 594 echo "Inserting modules ..." 584 595 insert-all-my-modules >> $LOGFILE 2>> $LOGFILE 596 for i in $FORCE_MODS do; 597 MyInsmod $i 598 done 585 599 else 586 600 ModprobeAllModules … … 614 628 [ -d /proc/vmware ] && ! grep -q /vmfs /proc/mounts && mount -t vmfs /vmfs /vmfs 615 629 rm -f /foozero 630 631 if [ "`grep -i denymods /proc/cmdline`" ]; then 632 export DENY_MODS="`cat /proc/cmdline | sed 's~.*denymods=\"\(.*\)\".*~\1~'` mondonone" 633 fi 634 635 if [ "`grep -i forcemods /proc/cmdline`" ]; then 636 export FORCE_MODS="`cat /proc/cmdline | sed 's~.*forcemods=\"\(.*\)\".*~\1~'` mondonone" 637 fi 616 638 617 639 echo "Activating a potential USB keyboard/mouse"
Note:
See TracChangeset
for help on using the changeset viewer.