Add select font to Arch Install

This commit is contained in:
MatMoul 2016-03-12 18:56:26 +01:00
parent e303da7000
commit 61f3c93fae
2 changed files with 26 additions and 2 deletions

27
archfi
View file

@ -12,7 +12,7 @@
# referance : https://wiki.archlinux.org/index.php/Installation_guide # referance : https://wiki.archlinux.org/index.php/Installation_guide
apptitle="Arch Linux Fast Install (archfi) - Version: 2016.03.12.18.04.17 (GPLv3)" apptitle="Arch Linux Fast Install (archfi) - Version: 2016.03.05.23.07.45 (GPLv3)"
baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master
@ -731,6 +731,7 @@ archmenu(){
options=() options=()
options+=("$txtsethostname" "/etc/hostname") options+=("$txtsethostname" "/etc/hostname")
options+=("$txtsetkeymap" "/etc/vconsole.conf") options+=("$txtsetkeymap" "/etc/vconsole.conf")
options+=("$txtsetfont" "/etc/vconsole.conf ($txtoptional)")
options+=("$txtsetlocale" "/etc/locale.conf, /etc/locale.gen") options+=("$txtsetlocale" "/etc/locale.conf, /etc/locale.gen")
options+=("$txtsettime" "/etc/localtime") options+=("$txtsettime" "/etc/localtime")
options+=("$txtsetrootpassword" "") options+=("$txtsetrootpassword" "")
@ -761,6 +762,10 @@ archmenu(){
;; ;;
"$txtsetkeymap") "$txtsetkeymap")
archsetkeymap archsetkeymap
nextitem="$txtsetfont"
;;
"$txtsetfont")
archsetfont
nextitem="$txtsetlocale" nextitem="$txtsetlocale"
;; ;;
"$txtsetlocale") "$txtsetlocale")
@ -883,7 +888,24 @@ archsetkeymap(){
clear clear
echo "echo \"KEYMAP=$keymap\" > /mnt/etc/vconsole.conf" echo "echo \"KEYMAP=$keymap\" > /mnt/etc/vconsole.conf"
echo "KEYMAP=$keymap" > /mnt/etc/vconsole.conf echo "KEYMAP=$keymap" > /mnt/etc/vconsole.conf
#echo "FONT=lat9w-16" >> /mnt/etc/vconsole.conf pressanykey
fi
}
archsetfont(){
items=$(find /usr/share/kbd/consolefonts/*.psfu.gz -printf "%f\n")
options=()
for item in $items; do
options+=("${item%%.*}" "")
done
vcfont=$(whiptail --backtitle "$apptitle" --title "$txtsetfont ($txtoptional)" --menu "" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ "$?" = "0" ]; then
clear
echo "echo \"FONT=$vcfont\" >> /mnt/etc/vconsole.conf"
echo "FONT=$vcfont" >> /mnt/etc/vconsole.conf
pressanykey pressanykey
fi fi
} }
@ -1271,6 +1293,7 @@ loadstrings(){
txtconfigarchlinux="Config Arch Linux" txtconfigarchlinux="Config Arch Linux"
txtsethostname="Set Computer Name" txtsethostname="Set Computer Name"
txtsetfont="Set Font"
txtsetlocale="Set Locale" txtsetlocale="Set Locale"
txtsettime="Set Time" txtsettime="Set Time"
txtsetrootpassword="Set root password" txtsetrootpassword="Set root password"

View file

@ -59,6 +59,7 @@ txtinstallarchlinux="Installer Arch Linux"
txtconfigarchlinux="Configurer Arch Linux" txtconfigarchlinux="Configurer Arch Linux"
txtsethostname="Définir le nom de l'ordinateur" txtsethostname="Définir le nom de l'ordinateur"
txtsetfont="Définir Font"
txtsetlocale="Définir Locale" txtsetlocale="Définir Locale"
txtsettime="Définir l'horloge" txtsettime="Définir l'horloge"
txtsetrootpassword="Définir le mot de passe root" txtsetrootpassword="Définir le mot de passe root"