|
|
@ -28,7 +28,8 @@ inf "Syncing hardware offset"
|
|
|
|
hwclock --systohc
|
|
|
|
hwclock --systohc
|
|
|
|
|
|
|
|
|
|
|
|
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
|
|
|
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
|
|
|
echo "LANG=en_US.UTF-8" > /etc/locale.conf
|
|
|
|
echo "export LANG=\"en_US.UTF-8\"" > /etc/locale.conf
|
|
|
|
|
|
|
|
echo "exprot LC_COLLATE=\"C\"" >> /etc/locale.conf
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
clear
|
|
|
|
prompt "Do you need more locales than just en_US? (y/N)"
|
|
|
|
prompt "Do you need more locales than just en_US? (y/N)"
|
|
|
@ -78,6 +79,30 @@ if [[ "$IPS" == "y" || "$IPS" == "Y" ]]; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "127.0.1.1 ${HOSTNAME}.localdomain ${HOSTNAME}" >> /etc/hosts
|
|
|
|
echo "127.0.1.1 ${HOSTNAME}.localdomain ${HOSTNAME}" >> /etc/hosts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INIT=$(cat /initsys)
|
|
|
|
|
|
|
|
rm /initsys
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$INIT" == "openrc" ]]; then
|
|
|
|
|
|
|
|
echo "hostname='${HOSTNAME}'" > /etc/conf.d/hostname
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inf "Installing connman"
|
|
|
|
|
|
|
|
pacman -S connman-${INIT} connman-gtk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$INIT" == "openrc" ]]; then
|
|
|
|
|
|
|
|
rc-update add connmand
|
|
|
|
|
|
|
|
elif [[ "$INIT" == "runit" ]]; then
|
|
|
|
|
|
|
|
ln -s /etc/runit/sv/connmand /etc/runit/runsvdir/default
|
|
|
|
|
|
|
|
elif [[ "$INIT" == "s6" ]]; then
|
|
|
|
|
|
|
|
s6-rc-bundle-update -c /etc/s6/rc/compiled add default connmand
|
|
|
|
|
|
|
|
elif [[ "$INIT" == "66" ]]; then
|
|
|
|
|
|
|
|
66-tree -ncE default
|
|
|
|
|
|
|
|
66-enable -t default connmand
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
err "No such init: ${INIT}"
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
clear
|
|
|
|
inf "Password for root"
|
|
|
|
inf "Password for root"
|
|
|
|
done="nope"
|
|
|
|
done="nope"
|
|
|
@ -111,17 +136,11 @@ if [[ -f /efimode ]]; then
|
|
|
|
else
|
|
|
|
else
|
|
|
|
DISK=$(cat /diskn)
|
|
|
|
DISK=$(cat /diskn)
|
|
|
|
rm /diskn
|
|
|
|
rm /diskn
|
|
|
|
grub-install ${DISK}
|
|
|
|
grub-install --recheck ${DISK}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
grub-mkconfig -o /boot/grub/grub.cfg
|
|
|
|
grub-mkconfig -o /boot/grub/grub.cfg
|
|
|
|
|
|
|
|
|
|
|
|
systemctl enable NetworkManager
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pacman-key --init
|
|
|
|
|
|
|
|
pacman-key --populate archlinux
|
|
|
|
|
|
|
|
pacman-key --populate crystal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
clear
|
|
|
|
prompt "Would you like to install a DE/WM profile? (y/N)"
|
|
|
|
prompt "Would you like to install a DE/WM profile? (y/N)"
|
|
|
@ -211,19 +230,27 @@ if [[ "$DEP" == "y" || "$DEP" == "Y" ]]; then
|
|
|
|
if [[ "$ND" != "" ]]; then
|
|
|
|
if [[ "$ND" != "" ]]; then
|
|
|
|
inf "Ok, we'll install $ND"
|
|
|
|
inf "Ok, we'll install $ND"
|
|
|
|
DM="$ND"
|
|
|
|
DM="$ND"
|
|
|
|
pacman -Sy --quiet --noconfirm $DM
|
|
|
|
pacman -Sy --quiet --noconfirm $DM-${INIT}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
inf "Ok, not installing a display manager."
|
|
|
|
inf "Ok, not installing a display manager."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
pacman -Sy --quiet --noconfirm $DM
|
|
|
|
pacman -Sy --quiet --noconfirm $DM-${INIT}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$DM" != "" ]]; then
|
|
|
|
if [[ "$DM" != "" ]]; then
|
|
|
|
prompt "Would you like to enable ${DM} for ${DE}? (Y/n)"
|
|
|
|
prompt "Would you like to enable ${DM} for ${DE}? (Y/n)"
|
|
|
|
useDM="$response"
|
|
|
|
useDM="$response"
|
|
|
|
if [[ "$useDM" != "n" ]]; then
|
|
|
|
if [[ "$useDM" != "n" ]]; then
|
|
|
|
systemctl enable ${DM}
|
|
|
|
if [[ "$INIT" == "openrc" ]]; then
|
|
|
|
|
|
|
|
rc-update add $DM
|
|
|
|
|
|
|
|
elif [[ "$INIT" == "runit" ]]; then
|
|
|
|
|
|
|
|
ln -s /etc/runit/sv/$DM /etc/runit/runsvdir/default
|
|
|
|
|
|
|
|
elif [[ "$INIT" == "s6" ]]; then
|
|
|
|
|
|
|
|
s6-rc-bundle-update -c /etc/s6/rc/compiled add default $DM
|
|
|
|
|
|
|
|
elif [[ "$INIT" == "66" ]]; then
|
|
|
|
|
|
|
|
66-enable -t default $DM
|
|
|
|
|
|
|
|
fi
|
|
|
|
if [[ "$DE" == "Deepin" ]]; then
|
|
|
|
if [[ "$DE" == "Deepin" ]]; then
|
|
|
|
sed -i 's/lightdm-gtk-greeter/lightdm-deepin-greeter/g' /etc/lightdm/lightdm.conf
|
|
|
|
sed -i 's/lightdm-gtk-greeter/lightdm-deepin-greeter/g' /etc/lightdm/lightdm.conf
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -252,3 +279,7 @@ if [[ "$MP" != "n" ]]; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
inf "Installation complete"
|
|
|
|
inf "Installation complete"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$INIT" == "66" ]]; then
|
|
|
|
|
|
|
|
err "Make sure to read https://wiki.artixlinux.org/Main/Installation at the very bottom for 66-specific post-install"
|
|
|
|
|
|
|
|
fi
|