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
19 lines
400 B
Bash
Executable File
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
|