Clean code
This commit is contained in:
parent
1301b1e9f7
commit
a2ca37e5be
1 changed files with 0 additions and 17 deletions
17
archfi
17
archfi
|
@ -98,12 +98,9 @@ setkeymap(){
|
||||||
#for item in $items; do
|
#for item in $items; do
|
||||||
# options+=("$item" "")
|
# options+=("$item" "")
|
||||||
#done
|
#done
|
||||||
#items=$(find /usr/share/kbd/keymaps/ -type f)
|
|
||||||
items=$(find /usr/share/kbd/keymaps/ -type f -printf "%f\n" | sort -V)
|
items=$(find /usr/share/kbd/keymaps/ -type f -printf "%f\n" | sort -V)
|
||||||
options=()
|
options=()
|
||||||
for item in $items; do
|
for item in $items; do
|
||||||
#item=$(basename "$item")
|
|
||||||
#item=${item%%.*}
|
|
||||||
options+=("${item%%.*}" "")
|
options+=("${item%%.*}" "")
|
||||||
done
|
done
|
||||||
keymap=$(whiptail --backtitle "$apptitle" --title "$txtsetkeymap" --menu "" 0 0 0 \
|
keymap=$(whiptail --backtitle "$apptitle" --title "$txtsetkeymap" --menu "" 0 0 0 \
|
||||||
|
@ -826,12 +823,9 @@ archsetkeymap(){
|
||||||
#for item in $items; do
|
#for item in $items; do
|
||||||
# options+=("$item" "")
|
# options+=("$item" "")
|
||||||
#done
|
#done
|
||||||
#items=$(find /usr/share/kbd/keymaps/ -type f)
|
|
||||||
items=$(find /usr/share/kbd/keymaps/ -type f -printf "%f\n" | sort -V)
|
items=$(find /usr/share/kbd/keymaps/ -type f -printf "%f\n" | sort -V)
|
||||||
options=()
|
options=()
|
||||||
for item in $items; do
|
for item in $items; do
|
||||||
#item=$(basename "$item")
|
|
||||||
#item=${item%%.*}
|
|
||||||
options+=("${item%%.*}" "")
|
options+=("${item%%.*}" "")
|
||||||
done
|
done
|
||||||
keymap=$(whiptail --backtitle "$apptitle" --title "$txtsetkeymap" --menu "" 0 0 0 \
|
keymap=$(whiptail --backtitle "$apptitle" --title "$txtsetkeymap" --menu "" 0 0 0 \
|
||||||
|
@ -959,11 +953,6 @@ archinstallgrub(){
|
||||||
clear
|
clear
|
||||||
pacstrap /mnt grub
|
pacstrap /mnt grub
|
||||||
|
|
||||||
#if (whiptail --backtitle "$apptitle" --title "${txtinstall//%1/grub}" --yesno "$txtinstallosprober" --defaultno 0 0) then
|
|
||||||
# clear
|
|
||||||
# pacstrap /mnt os-prober
|
|
||||||
#fi
|
|
||||||
|
|
||||||
if [ "$efimode" = "1" ]||[ "$efimode" = "2" ]; then
|
if [ "$efimode" = "1" ]||[ "$efimode" = "2" ]; then
|
||||||
if (whiptail --backtitle "$apptitle" --title "${txtinstall//%1/efibootmgr}" --yesno "$txtefibootmgr" 0 0) then
|
if (whiptail --backtitle "$apptitle" --title "${txtinstall//%1/efibootmgr}" --yesno "$txtefibootmgr" 0 0) then
|
||||||
clear
|
clear
|
||||||
|
@ -1103,8 +1092,6 @@ archdidownload(){
|
||||||
}
|
}
|
||||||
archdiinstallandlaunchchroot(){
|
archdiinstallandlaunchchroot(){
|
||||||
cd
|
cd
|
||||||
#curl -L archdi.sourceforge.net/archdi >archdi
|
|
||||||
#curl -L matmoul.github.io/archdi >archdi >archdi
|
|
||||||
archdidownload
|
archdidownload
|
||||||
sh archdi -i
|
sh archdi -i
|
||||||
archdi --chroot
|
archdi --chroot
|
||||||
|
@ -1112,8 +1099,6 @@ archdiinstallandlaunchchroot(){
|
||||||
}
|
}
|
||||||
archdilaunchchroot(){
|
archdilaunchchroot(){
|
||||||
cd
|
cd
|
||||||
#curl -L archdi.sourceforge.net/archdi >archdi
|
|
||||||
#curl -L matmoul.github.io/archdi >archdi >archdi
|
|
||||||
archdidownload
|
archdidownload
|
||||||
sh archdi --chroot
|
sh archdi --chroot
|
||||||
rm archdi
|
rm archdi
|
||||||
|
@ -1121,8 +1106,6 @@ archdilaunchchroot(){
|
||||||
}
|
}
|
||||||
archdiinstallchroot(){
|
archdiinstallchroot(){
|
||||||
cd
|
cd
|
||||||
#curl -L archdi.sourceforge.net/archdi >archdi
|
|
||||||
#curl -L matmoul.github.io/archdi >archdi >archdi
|
|
||||||
archdidownload
|
archdidownload
|
||||||
sh archdi -i
|
sh archdi -i
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in a new issue