Changeset 1761 in MondoRescue for branches/2.2.5/mindi/rootfs/sbin/init
- Timestamp:
- Nov 1, 2007, 8:27:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/rootfs/sbin/init
r1759 r1761 291 291 } 292 292 293 293 RstHW() { 294 295 # Restore the HW configuration if available (NOT by default) 296 answer="NO" 297 298 if [ -x ./mindi-rsthw ]; then 299 grep -q RESTORE /proc/cmdline 300 if [ "$?" -ne 0 ]; then 301 clear 302 echo "*********************************************************************" 303 echo "Do you want to restore the HW configuration of the original machine ?" 304 echo "(This may dammage your hardware so be sure to check twice before saying yes)" 305 echo "*********************************************************************" 306 echo "Please confirm by typing YES exactly as written here (NO by default)" 307 echo -n "--> " 308 read answer 309 else 310 answer="YES" 311 fi 312 if [ "$answer" -eq "YES" ] ; then 313 ./mindi-rsthw 314 fi 315 fi 316 } 294 317 295 318 … … 529 552 530 553 EnableCcissIfAppropriate 554 RstHW 531 555 #------------------------------- 532 556 #WHOLIVESINAPINEAPPLEUNDERTHESEA#;# --- don't touch this :)
Note:
See TracChangeset
for help on using the changeset viewer.