diff options
| author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-28 21:06:21 +0100 | 
|---|---|---|
| committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-28 21:06:21 +0100 | 
| commit | 5019d65ca5bbe03b93215cbe9ea784b1a5db64a1 (patch) | |
| tree | 9a65bea85bca1295bc0034df4468a57c85a9db16 | |
| parent | Better screens (diff) | |
| download | arch-installer-5019d65ca5bbe03b93215cbe9ea784b1a5db64a1.tar.gz arch-installer-5019d65ca5bbe03b93215cbe9ea784b1a5db64a1.tar.bz2 arch-installer-5019d65ca5bbe03b93215cbe9ea784b1a5db64a1.tar.xz arch-installer-5019d65ca5bbe03b93215cbe9ea784b1a5db64a1.tar.zst arch-installer-5019d65ca5bbe03b93215cbe9ea784b1a5db64a1.zip | |
Modified hstnm func
| -rwxr-xr-x | arch-installer.sh | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/arch-installer.sh b/arch-installer.sh index 2c4b442..7ebad6a 100755 --- a/arch-installer.sh +++ b/arch-installer.sh @@ -60,7 +60,8 @@ therefore Joe's installer is forced to abort.\nPlease connect to the Internet an  #---------------------------------------- HOSTNAME SETUP ------------------------------------------#  #==================================================================================================#  jo_get_hstnm() { -	while [ $hstnm = "" ]; do +	gogogo=false +	while [ "$gogogo" = false ]; do  		hstnm=$(dialog\  					--nocancel --title "$1"\  					--inputbox "Please choose a hostname for this machine.\ @@ -71,6 +72,9 @@ please ask your network administrator for an appropriate name."\  		if [ "$hstnm" = "" ]; then  			dialog --infobox "Hostname is empty, retrying..." 3 34  			sleep 2 +			gogogo=false +		else +			gogogo=true  		fi  	done  } @@ -517,6 +521,7 @@ dialog --title "V. CONFIGURING LINUX"\  	   --infobox "Setting up the system"\  	   3 30  sleep 1 +clear  arch-chroot /mnt/arch << ARCH_CHROOT_CMDS  	ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime  	sleep 1 | 
