Changeset 1830 in MondoRescue for branches/2.2.5/mindi/rootfs/sbin/init
- Timestamp:
- Dec 2, 2007, 12:24:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/rootfs/sbin/init
r1829 r1830 157 157 HandleCDROMorFloppies() { 158 158 # Just in case we have an iLO ensure we will map it correctly 159 grep -q "usb-storage " $DENY_MODS159 echo "$DENY_MODS" | grep -q "usb-storage " 160 160 if [ $? -eq 0 ]; then 161 161 return … … 393 393 # Prepare minimal USB env in case we have USB kbd such as with iLO 394 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 395 echo "$DENY_MODS" | grep -Eq 'uhcd_hci |usbhid |usbcore ' 396 396 if [ $? -eq 0 ]; then 397 397 return … … 576 576 for m in `find /lib/modules -name '*.ko*'`; do 577 577 j=`basename $m | sed 's/\.ko.*$//'` 578 grep -q '$j ' $DENY_MODS578 echo "$DENY_MODS" | grep -q "$j " 579 579 if [ $? -eq 0 ]; then 580 echo "Denying $j..." 580 581 continue 581 582 fi … … 594 595 echo "Inserting modules ..." 595 596 insert-all-my-modules >> $LOGFILE 2>> $LOGFILE 596 for i in $FORCE_MODS do;597 for i in $FORCE_MODS; do 597 598 MyInsmod $i 598 599 done … … 631 632 if [ "`grep -i denymods /proc/cmdline`" ]; then 632 633 export DENY_MODS="`cat /proc/cmdline | sed 's~.*denymods=\"\(.*\)\".*~\1~'` mondonone" 634 else 635 export DENY_MODS=" " 633 636 fi 634 637 635 638 if [ "`grep -i forcemods /proc/cmdline`" ]; then 636 639 export FORCE_MODS="`cat /proc/cmdline | sed 's~.*forcemods=\"\(.*\)\".*~\1~'` mondonone" 640 else 641 export FORCE_MODS=" " 637 642 fi 638 643
Note:
See TracChangeset
for help on using the changeset viewer.