Files
new_install/text/get_instmode.sh
Peng Zhihui b3e847c59c Enable to select install mode when net-install and hd-install
modified:   interface/ri_inst_cli.py
	new file:   main/begin-install
	modified:   operation/finish_install/98state_grid_custom.py
	new file:   text/get_instmode.sh
	new file:   text/select_inst_mode.py
2014-04-22 16:16:47 +08:00

19 lines
400 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" ];then
select_inst_mode
fi
export instmode