Files
new_install/text/get_instmode.sh
Peng Zhihui 27fed5d1a1 deleted useless script : operation/finish_install.py
add no raid install :
    just move scripts/local-top/mdadm from initrd
    this will support Lenovo RD440 machine

	deleted:    operation/finish_install.py
	new file:   operation/finish_install/97update_initrd_noraid.sh
	modified:   text/get_instmode.sh
2014-05-16 14:51:36 +08:00

19 lines
426 B
Bash
Executable File

#!/bin/bash
# get or set instmode's value
tmp_file="/tmp/xrasmxioecnz"
select_inst_mode(){
python /usr/lib/new_install/text/select_inst_mode.py
instmode=$(cat ${tmp_file})
rm ${tmp_file}
}
[ -z $instmode ] && instmode=`cat /proc/cmdline | sed 's/.*instmode=\([^ ]*\).*/\1/'`
if [ "$instmode" = "HdInstall" -o "$instmode" = "NetInstall" -o "$instmode" = "NoRaid" ];then
select_inst_mode
fi
export instmode