aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatMoul <matmoul@gmail.com>2016-03-12 18:56:26 +0100
committerMatMoul <matmoul@gmail.com>2016-03-12 18:56:26 +0100
commit61f3c93fae6104520ac051551bbbc435c9f6b1ef (patch)
treec92acf22663fe140c3ec868a1b6d81c60b3ea47e
parente303da70005a4db92aee8d45600f69f3c1c629b6 (diff)
downloadhyperfi-61f3c93fae6104520ac051551bbbc435c9f6b1ef.tar.lz
hyperfi-61f3c93fae6104520ac051551bbbc435c9f6b1ef.tar.xz
hyperfi-61f3c93fae6104520ac051551bbbc435c9f6b1ef.zip
Add select font to Arch Install
-rw-r--r--archfi27
-rw-r--r--lng/French1
2 files changed, 26 insertions, 2 deletions
diff --git a/archfi b/archfi
index 1d36921..a7802c5 100644
--- a/archfi
+++ b/archfi
@@ -12,7 +12,7 @@
# 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
@@ -731,6 +731,7 @@ archmenu(){
options=()
options+=("$txtsethostname" "/etc/hostname")
options+=("$txtsetkeymap" "/etc/vconsole.conf")
+ options+=("$txtsetfont" "/etc/vconsole.conf ($txtoptional)")
options+=("$txtsetlocale" "/etc/locale.conf, /etc/locale.gen")
options+=("$txtsettime" "/etc/localtime")
options+=("$txtsetrootpassword" "")
@@ -761,6 +762,10 @@ archmenu(){
;;
"$txtsetkeymap")
archsetkeymap
+ nextitem="$txtsetfont"
+ ;;
+ "$txtsetfont")
+ archsetfont
nextitem="$txtsetlocale"
;;
"$txtsetlocale")
@@ -883,7 +888,24 @@ archsetkeymap(){
clear
echo "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
fi
}
@@ -1271,6 +1293,7 @@ loadstrings(){
txtconfigarchlinux="Config Arch Linux"
txtsethostname="Set Computer Name"
+ txtsetfont="Set Font"
txtsetlocale="Set Locale"
txtsettime="Set Time"
txtsetrootpassword="Set root password"
diff --git a/lng/French b/lng/French
index 1cc000f..54bfc0a 100644
--- a/lng/French
+++ b/lng/French
@@ -59,6 +59,7 @@ txtinstallarchlinux="Installer Arch Linux"
txtconfigarchlinux="Configurer Arch Linux"
txtsethostname="Définir le nom de l'ordinateur"
+txtsetfont="Définir Font"
txtsetlocale="Définir Locale"
txtsettime="Définir l'horloge"
txtsetrootpassword="Définir le mot de passe root"