Changeset 1621 in MondoRescue for branches/stable/mindi
- Timestamp:
- Sep 7, 2007, 11:56:50 AM (17 years ago)
- Location:
- branches/stable/mindi/rootfs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/rootfs/etc/syslog.conf
r30 r1621 1 1 # Various entry 2 *.* /tmp/mondo -restore.log2 *.* /tmp/mondorestore.log -
branches/stable/mindi/rootfs/sbin/init
r1581 r1621 322 322 LogIt "$i is started already; no need to run 'mdadm $i'" 1 323 323 else 324 LogIt "Running 'mdadm $i'" 1 325 mdadm -Ac partitions -m dev $i 324 if [ -f /etc/mdadm.conf ] ; then 325 LogIt "Running 'mdadm $i' with user supplied /etc/mdadm.conf" 1 326 mdadm -A $i -c /etc/mdadm.conf 327 elif [ -f /etc/mdadm/mdadm.conf ] ; then 328 LogIt "Running 'mdadm $i' with user supplied /etc/mdadm/mdadm.conf" 1 329 mdadm -A $i -c /etc/mdadm/mdadm.conf 330 else 331 LogIt "Running 'mdadm $i'" 1 332 mdadm -Ac partitions -m dev $i 333 fi 326 334 fi 327 335 done … … 558 566 LogIt "I think this media has no archives on it." 559 567 fi 560 echo -en "Type 'exit' to reboot the PC\n" 561 umount /mnt/cdrom 2> /dev/null 562 mount / -o rw,remount > /dev/null 2> /dev/null 563 LogIt "Launching Shell" 564 sh 568 if grep "RESTORE" /proc/cmdline > /dev/null 2> /dev/null ; then 569 echo "Rebooting in 10 seconds automatically as per reboot order" 570 echo -en "Press ^C to interrupt if you have to ..." 571 for i in 1 2 3 4 5 6 7 8 9 10 ; do 572 sleep 1 573 echo -en "." 574 done 575 echo "Boom." 576 sleep 1 577 else 578 echo -en "Type 'exit' to reboot the PC\n" 579 umount /mnt/cdrom 2> /dev/null 580 mount / -o rw,remount > /dev/null 2> /dev/null 581 LogIt "Launching Shell" 582 sh 583 fi 565 584 CaughtSoftReset 566 585 # reboot -
branches/stable/mindi/rootfs/sbin/post-init
r1339 r1621 121 121 mondorestore --nuke 122 122 else 123 mondorestore; # MR will detect & access the tape123 mondorestore; # MR will detect & access the tape 124 124 fi 125 125 fi … … 138 138 fi 139 139 else 140 LogIt "------------------EXPERT MODE------------------" 1141 LogIt "You do all the work. :-)" 1142 if which mondorestore > /dev/null 2> /dev/null ; then140 LogIt "------------------EXPERT MODE------------------" 1 141 LogIt "You do all the work. :-)" 1 142 if which mondorestore > /dev/null 2> /dev/null ; then 143 143 LogIt "Type 'mondorestore' to begin the restore/compare process." 1 144 loc=`which ISO 2> /dev/null`144 loc=`which ISO 2> /dev/null` 145 145 fi 146 146 fi
Note:
See TracChangeset
for help on using the changeset viewer.