mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Update easy-arch.sh
changed some comments/prompts to make more sense and make it more obvious that the keyboard layout chosen is only for the console and won't apply in a graphical environment.
This commit is contained in:
parent
804c2ca509
commit
c6d418995d
1 changed files with 10 additions and 10 deletions
20
easy-arch.sh
20
easy-arch.sh
|
|
@ -120,7 +120,7 @@ network_installer () {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
# Setting up a password for the LUKS Container (function).
|
# User enters a password for the LUKS Container (function).
|
||||||
lukspass_selector () {
|
lukspass_selector () {
|
||||||
while true; do
|
while true; do
|
||||||
read -r -s -p "Insert password for the LUKS container (you're not going to see the password): " password
|
read -r -s -p "Insert password for the LUKS container (you're not going to see the password): " password
|
||||||
|
|
@ -138,7 +138,7 @@ lukspass_selector () {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Setting up a password for the user account (function).
|
# User enters a password for the user account (function).
|
||||||
userpass_selector () {
|
userpass_selector () {
|
||||||
while true; do
|
while true; do
|
||||||
read -r -s -p "Set a user password for $username: " userpass
|
read -r -s -p "Set a user password for $username: " userpass
|
||||||
|
|
@ -156,7 +156,7 @@ userpass_selector () {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Setting up a password for the root account (function).
|
# User enters a password for the root account (function).
|
||||||
rootpass_selector () {
|
rootpass_selector () {
|
||||||
while true; do
|
while true; do
|
||||||
read -r -s -p "Set a root password: " rootpass
|
read -r -s -p "Set a root password: " rootpass
|
||||||
|
|
@ -186,7 +186,7 @@ microcode_detector () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# User chooses the hostname (function).
|
# User enters a hostname (function).
|
||||||
hostname_selector () {
|
hostname_selector () {
|
||||||
read -r -p "Please enter the hostname: " hostname
|
read -r -p "Please enter the hostname: " hostname
|
||||||
if [ -z "$hostname" ]; then
|
if [ -z "$hostname" ]; then
|
||||||
|
|
@ -196,9 +196,9 @@ hostname_selector () {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Setting up the locale (function).
|
# User chooses the locale (function).
|
||||||
locale_selector () {
|
locale_selector () {
|
||||||
read -r -p "Please insert the locale you use (format: xx_XX. Enter empty to use en_US, or type a "/" to search avaliable locales): " locale
|
read -r -p "Please insert the locale you use (format: xx_XX. Enter empty to use en_US, or "/" to search locales): " locale
|
||||||
case $locale in
|
case $locale in
|
||||||
'') print "en_US will be used as default locale."
|
'') print "en_US will be used as default locale."
|
||||||
locale="en_US.UTF-8";;
|
locale="en_US.UTF-8";;
|
||||||
|
|
@ -214,11 +214,11 @@ locale_selector () {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
# Setting up the keyboard layout (function).
|
# User chooses the console keyboard layout (function).
|
||||||
keyboard_selector () {
|
keyboard_selector () {
|
||||||
read -r -p "Please insert the keyboard layout you use (enter empty to use US keyboard layout, or enter "/" to search avaliable layouts): " kblayout
|
read -r -p "Please insert the keyboard keymap/layout to use in console (enter empty to use us, or "/" to search keymaps): " kblayout
|
||||||
case $kblayout in
|
case $kblayout in
|
||||||
'') print "US keyboard layout will be used by default."
|
'') print "The us keymap will be used in console by default."
|
||||||
kblayout="us"
|
kblayout="us"
|
||||||
return 0;;
|
return 0;;
|
||||||
'/') localectl list-keymaps
|
'/') localectl list-keymaps
|
||||||
|
|
@ -228,7 +228,7 @@ keyboard_selector () {
|
||||||
incEcho "The specified keymap doesn't exist."
|
incEcho "The specified keymap doesn't exist."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
print "Changing layout to $kblayout."
|
print "Changing console layout to $kblayout."
|
||||||
loadkeys $kblayout
|
loadkeys $kblayout
|
||||||
return 0
|
return 0
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue