Changeset 1761 in MondoRescue for branches/2.2.5/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Nov 1, 2007, 8:27:45 PM (16 years ago)
Author:
Bruno Cornec
Message:

Adds preliminary Hardware support to mindi (Proliant SSSTK)
Not tested yet, just coded, and saved in SVN as a backup :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1759 r1761  
    291291}
    292292
    293 
     293RstHW() {
     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}
    294317
    295318
     
    529552
    530553EnableCcissIfAppropriate
     554RstHW
    531555#-------------------------------
    532556#WHOLIVESINAPINEAPPLEUNDERTHESEA#;# --- don't touch this :)
Note: See TracChangeset for help on using the changeset viewer.