Changeset 1815 in MondoRescue for branches/2.2.5/mindi/rootfs/sbin/init
- Timestamp:
- Nov 19, 2007, 1:13:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/rootfs/sbin/init
r1813 r1815 196 196 # Load the VIA IDE module first thing if it exists (requires ide-core). 197 197 # This is to ensure that DMA is working for VIA chipsets with 2.6 kernels. 198 for module in /ide-core.ko /via82cxxx.ko; do198 for module in /ide-core.ko* /via82cxxx.ko*; do 199 199 [ -f "$module" ] && MyInsmod $module > /dev/null 2> /dev/null 200 200 done … … 315 315 answer="NO" 316 316 317 grep -q nohw /proc/cmdline 318 if [ "$?" -eq 0 ]; then 319 return 320 fi 317 321 if [ -x ./mindi-rsthw ]; then 318 322 grep -q RESTORE /proc/cmdline 319 323 if [ "$?" -ne 0 ]; then 320 clear324 #clear 321 325 echo "*********************************************************************" 322 326 echo "Do you want to restore the HW configuration of the original machine ?" … … 362 366 [ -d /proc/bus/usb ] && ! grep -q /proc/bus/usb /proc/mounts && mount -t usbfs none /proc/bus/usb 363 367 if [ -e "/tmp/USE-UDEV" ] ; then 364 if [ -f usbhid.ko ]; then368 if [ -f usbhid.ko || -f usbhid.ko.gz ]; then 365 369 modprobe -q usbhid 366 370 fi 367 if [ -f uhcd_hci.ko ]; then371 if [ -f uhcd_hci.ko || -f uhcd_hci.ko.gz ]; then 368 372 modprobe -q uhcd_hci 369 373 fi 370 374 else 371 375 if [ -f uhcd_hci.ko ]; then 372 insmod uhcd_hci.ko 376 insmod uhcd_hci.ko* 373 377 fi 374 378 if [ -f usbhid.ko ]; then 375 insmod usbcore.ko 376 insmod usbhid.ko 379 insmod usbcore.ko* 380 insmod usbhid.ko* 377 381 fi 378 382 fi … … 538 542 ModprobeAllModules() { 539 543 540 for m in *.ko; do 541 j=`echo $m | sed 's/\.ko$//'` 542 if [ -e $j ]; then 543 modprobe -q $j 544 fi 544 for m in *.ko*; do 545 j=`echo $m | sed 's/\.ko.*$//'` 546 modprobe -q $j 545 547 done 546 548 }
Note:
See TracChangeset
for help on using the changeset viewer.