Running 'setup' will text install defaultly

Fix problem of setting swap

	modified:   dialog/di_newt.py
	modified:   interface/ri_inst_cli.py
	modified:   main/setup
This commit is contained in:
Peng Zhihui
2014-01-17 10:56:12 +08:00
parent c86cee75af
commit 04be655e08
3 changed files with 10 additions and 8 deletions

View File

@@ -23,7 +23,7 @@
#===================================================================================
#Set variables
#===================================================================================
workdir="/usr/lib/new_install/interface"
workdir="/usr/lib/new_install/dialog"
exec_file='xinitrc_setup'
work_write_dir='/var/install'
configfile="../xml/config.xml"
@@ -31,10 +31,10 @@ configfile="../xml/config.xml"
#Performance function
#===================================================================================
usage(){
echo "usage: $0 [-s|--style style] [-l|--language language][-n|--noXserver][-h|--help]"
echo "usage: $0 [-s|--style style][-g|--graph][-l|--language language][-n|--noXserver][-h|--help]"
echo "style [text|graph]"
echo "language [english|chinese]"
echo "default Xserver start"
echo "default text install"
}
config_execfile(){
@@ -55,12 +55,13 @@ config_execfile(){
}
main(){
local style='graph'
local style='dialog'
local language='chinese'
local xstart='yes'
local xstart='no'
local dialog=''
tmp=$(getopt -o c:dsl:nh --long style:,configfile:,language:,noXserver,help -- "$@")
#tmp=$(getopt -o c:dsl:nh --long style:,configfile:,language:,noXserver,help -- "$@")
tmp=$(getopt -o c:sgl:nh --long configfile:,style,graph,language:,noXserver,help -- "$@")
eval set -- "$tmp"
mkdir -p $work_write_dir
@@ -68,6 +69,7 @@ main(){
while true;do
case "$1" in
'-c'|'--configfile') configfile="$2" ; shift 2;;
'-g'|'--graph') xstart='yes';style="graph" ;workdir="/usr/lib/new_install/interface";shift ;;
'-s'|'--style') xstart='no';style="dialog" ;workdir="/usr/lib/new_install/dialog";shift ;;
'-l'|'--language') language="$2" ;shift 2;;
'-n'|'--noXserver') xstart='no' ;shift ;;