feat: reduce amount of questions
This commit is contained in:
parent
ed50d9f04e
commit
a695516ecd
10
base.sh
10
base.sh
@ -21,12 +21,8 @@ echo "$hostname" > /etc/hostname
|
|||||||
|
|
||||||
# Packages
|
# Packages
|
||||||
case "$(lscpu | grep Vendor)" in
|
case "$(lscpu | grep Vendor)" in
|
||||||
*AuthenticAMD*)
|
*AuthenticAMD*) cpu=amd ;;
|
||||||
cpu=amd
|
*GenuineIntel*) cpu=intel ;;
|
||||||
;;
|
|
||||||
*GenuineIntel*)
|
|
||||||
cpu=intel
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
$PACMAN "${pkg[@]}" "$cpu-ucode"
|
$PACMAN "${pkg[@]}" "$cpu-ucode"
|
||||||
@ -43,7 +39,7 @@ fi
|
|||||||
|
|
||||||
# Users
|
# Users
|
||||||
echo "root:$root_passwd" | chpasswd
|
echo "root:$root_passwd" | chpasswd
|
||||||
useradd -mG wheel "$username"
|
useradd -mG wheel "$username" -s "${default_shell-/bin/bash}"
|
||||||
echo "$username:$user_passwd" | chpasswd
|
echo "$username:$user_passwd" | chpasswd
|
||||||
|
|
||||||
sed -i '/^# %wheel\s\+ALL=(ALL:ALL)\s\+ALL/s/^#\s*//' /etc/sudoers
|
sed -i '/^# %wheel\s\+ALL=(ALL:ALL)\s\+ALL/s/^#\s*//' /etc/sudoers
|
||||||
|
2
config
2
config
@ -5,6 +5,8 @@ username=ange
|
|||||||
user_passwd=ange
|
user_passwd=ange
|
||||||
root_passwd=root
|
root_passwd=root
|
||||||
|
|
||||||
|
default_shell=/bin/zsh
|
||||||
|
|
||||||
hostname="$username-pc"
|
hostname="$username-pc"
|
||||||
|
|
||||||
tz='Europe/Paris'
|
tz='Europe/Paris'
|
||||||
|
@ -15,14 +15,8 @@ fi
|
|||||||
|
|
||||||
git clone --bare "$repo" "$HOME/.dotfiles"
|
git clone --bare "$repo" "$HOME/.dotfiles"
|
||||||
|
|
||||||
while ! $config checkout; do
|
$config checkout -f
|
||||||
echo 'Please the error above and press enter:'
|
|
||||||
read -r
|
|
||||||
done
|
|
||||||
|
|
||||||
$config submodule update --init --recursive --remote
|
$config submodule update --init --recursive --remote
|
||||||
$config config status.showUntrackedFiles no
|
$config config status.showUntrackedFiles no
|
||||||
|
|
||||||
chsh -s /bin/zsh
|
|
||||||
|
|
||||||
echo -e "${BOLD}${GREEN}DONE. You need to reboot to apply the changes.${NORMAL}"
|
echo -e "${BOLD}${GREEN}DONE. You need to reboot to apply the changes.${NORMAL}"
|
||||||
|
1
gpu.sh
1
gpu.sh
@ -30,7 +30,6 @@ case "$(lspci -k | grep -E '(VGA|3D)')" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
sed -i "s/^MODULES=(/MODULES=($modules/" /etc/mkinitcpio.conf
|
sed -i "s/^MODULES=(/MODULES=($modules/" /etc/mkinitcpio.conf
|
||||||
|
|
||||||
mkinitcpio -P
|
mkinitcpio -P
|
||||||
|
|
||||||
echo -e "${BOLD}${GREEN}GPU drivers install finished.${NORMAL}"
|
echo -e "${BOLD}${GREEN}GPU drivers install finished.${NORMAL}"
|
||||||
|
Loading…
Reference in New Issue
Block a user