if graphical start failed, will start text install.
	modified:   main/setup
This commit is contained in:
Qin Bo
2012-08-16 14:14:40 +08:00
parent 652e58598b
commit f877154019

View File

@@ -86,6 +86,12 @@ main(){
if [ $xstart = 'yes' ]; then
X -configure
startx ${work_write_dir}/${exec_file} -- -config ~/xorg.conf.new
ret=$?
if [ $ret -ne 0 ];then
xstart='no';style="dialog" ;workdir="/usr/lib/new_install/dialog";
config_execfile "$style"
bash ${work_write_dir}/${exec_file}
fi
else
bash ${work_write_dir}/${exec_file}
fi