aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-04-15 15:57:00 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-04-15 16:05:00 -0400
commitaa10033e77e9c095e7b66bf13a51ce0ff5c66e50 (patch)
tree58ed227d9e9ea55501b5f844ea0ef4febe7a031b /build.sh
parent3d7f984c1e0baabadd923d8a1266372e4a9d3457 (diff)
added scripts and conf
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..62f5101
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+if [ ! -e work/pacman ]; then
+ touch work/pacman
+ yes | pacman -Syu --needed $(cat packages | xargs echo)
+fi
+cat services | xargs systemctl enable
+
+ip link
+export USER=czar
+grep "$USER" /etc/passwd || useradd -m $USER
+usermod $USER -aG wheel -s /bin/zsh
+timedatectl set-ntp true
+echo | sudo -u czar ssh-keygen
+
+sh regional.sh # Region specific setup
+hwclock --systohc
+
+passwd
+
+sh mod.sh
+ip link
+echo -n "wpa_supplicant@"
+read INTER
+systemctl enable wpa_supplicant@$INTER
+
+sh source.sh
+sh config.sh
+
+grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
+grub-mkconfig -o /boot/grub/grub.cfg
+mkinitcpio -P