chmod +x *.sh
chmod +x **/*.sh
-
+echo "local install"
./localinstall.sh
-./syteminstall.sh
+echo "in-system install"
+./systeminstall.sh
echo "done installing arch linux"
#!/bin/bash
while [ -z "$NEWLOCALE" ]; do
- NEWLOCALE=$(cat /etc/locale.gen | fzf --prompt 'select locale')
+ NEWLOCALE=$(cat /etc/locale.gen | grep '^#[^ ]' | fzf --prompt 'select locale')
done
+
+NEWGEN=$(grep '[^#]*' <<<"$NEWLOCALE")
+sed -i "s/$NEWLOCALE/$NEWGEN/g" /etc/locale.gen
+locale-gen
source <(curl -Ls git.io/paperbash)
pb dialog
-NEWHOSTNAME=$(textbox enter hostname)
+NEWHOSTNAME=$(textbox "enter hostname")
echo "$NEWHOSTNAME" >/etc/hostname
echo "127.0.1.1 $NEWHOSTNAME.localdomain $NEWHOSTNAME" >>/etc/hosts
pacman -S --noconfirm networkmanager
-systemctl enable NeworkManager
+systemctl enable NetworkManager
}
chrootscript "depend/depend"
+chrootscript "depend/depend"
chrootscript "depend/system"
chrootscript "chroot/chroot"
chrootscript "chroot/drivers"
chrootscript "lang/timezone"
+chrootscript "lang/locale"
# grub: install package, install, generate config
chrootscript "bootloader/bootloader"