Changeset 1924 in MondoRescue for branches/stable/mindi/rootfs/sbin/init
- Timestamp:
- Apr 18, 2008, 1:41:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/rootfs/sbin/init
r1903 r1924 79 79 openvt 7 /bin/sh /sbin/wait-for-petris 80 80 openvt 8 /usr/bin/tail -f $LOGFILE 81 # May avoid shell error messages 82 chmod 666 /dev/tty* /dev/console 81 83 } 82 84 … … 162 164 fi 163 165 echo "Activating a potential USB Storage device" 164 if [ -f usb-storage.ko ] || [ -f usb-storage.ko.gz ]; then 165 if [ -e "/tmp/USE-UDEV" ] ; then 166 modprobe -q usb-storage 167 else 168 insmod usb-storage.ko* 169 fi 170 fi 166 modprobe -q usb-storage 171 167 for i in 1 2 3 4 5 6 7 8 9 10 ; do 172 168 sleep 1 … … 199 195 HowMuchFreeSpaceOnRamdisk() { 200 196 df -m -P | grep /dev/ram | head -n1 | tr -s '\t' ' ' | cut -d' ' -f4 201 }202 203 204 205 InsertEssentialModules() {206 # Load the VIA IDE module first thing if it exists (requires ide-core).207 # This is to ensure that DMA is working for VIA chipsets with 2.6 kernels.208 for module in /ide-core.ko* /via82cxxx.ko*; do209 [ -f "$module" ] && MyInsmod $module > /dev/null 2> /dev/null210 done211 # Then load the remaining modules in normal (i.e. arbitrary) order.212 for j in 1 2 3 4 5 ; do213 for i in `ls /*.*o* 2> /dev/null` ; do214 [ -f "$i" ] && MyInsmod $i > /dev/null 2> /dev/null215 done216 done217 197 } 218 198 … … 314 294 fi 315 295 create_dev_makedev 316 # May avoid shell error messages317 chmod 644 /dev/tty*318 296 if [ -x /sbin/udevsettle ]; then 319 297 /sbin/udevsettle … … 353 331 answer="YES" 354 332 fi 355 if [ "$answer" -eq"YES" ] ; then333 if [ "$answer" = "YES" ] ; then 356 334 ./mindi-rsthw 357 335 fi … … 389 367 return 390 368 fi 391 if [ -e "/tmp/USE-UDEV" ] ; then 392 if [ -f uhcd_hci.ko ] || [ -f uhcd_hci.ko.gz ]; then 393 modprobe -q uhcd_hci 394 fi 395 if [ -f usbhid.ko ] || [ -f usbhid.ko.gz ]; then 396 modprobe -q usbhid 397 fi 398 else 399 if [ -f uhcd_hci.ko ]; then 400 insmod uhcd_hci.ko 401 fi 402 if [ -f usbhid.ko ]; then 403 insmod usbcore.ko 404 insmod usbhid.ko 405 fi 406 fi 369 modprobe -q uhcd_hci 370 modprobe -q usbhid 407 371 } 408 372 … … 413 377 LogIt "Scanning LVM's..." 1 414 378 if which lvm ; then 415 MyInsmoddm-mod416 MyInsmoddm_mod379 modprobe -q dm-mod 380 modprobe -q dm_mod 417 381 lvm vgscan --mknodes 418 382 else … … 566 530 ModprobeAllModules() { 567 531 568 for m in `find /lib/modules -name '* .ko*'`; do532 for m in `find /lib/modules -name '*\.ko*' -o -name '*\.o*'`; do 569 533 j=`basename $m | sed 's/\.ko.*$//'` 534 j=`basename $m | sed 's/\.o.*$//'` 570 535 echo "$DENY_MODS" | grep -q "$j " 571 536 if [ $? -eq 0 ]; then … … 584 549 PKLVL=`cut -f1 /proc/sys/kernel/printk` 585 550 echo 0 > /proc/sys/kernel/printk 586 if [ ! -e "/tmp/USE-UDEV" ] ; then 587 echo "Inserting modules ..." 588 insert-all-my-modules >> $LOGFILE 2>> $LOGFILE 589 for i in $FORCE_MODS; do 590 MyInsmod $i 591 done 592 else 593 ModprobeAllModules 594 fi 551 ModprobeAllModules 595 552 echo $PKLVL > /proc/sys/kernel/printk 596 553 } … … 654 611 PKLVL=`cut -f1 /proc/sys/kernel/printk` 655 612 echo 0 > /proc/sys/kernel/printk 656 if [ ! -e "/tmp/USE-UDEV" ] ; then 657 InsertEssentialModules 658 else 659 ModprobeAllModules 660 fi 613 ModprobeAllModules 661 614 echo $PKLVL > /proc/sys/kernel/printk 662 615
Note:
See TracChangeset
for help on using the changeset viewer.