aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh10
-rwxr-xr-xconfig.sh6
-rwxr-xr-xinstall.sh3
3 files changed, 10 insertions, 9 deletions
diff --git a/build.sh b/build.sh
index 7db4082..e07c0d6 100755
--- a/build.sh
+++ b/build.sh
@@ -7,19 +7,17 @@ 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
+export USE=czar
+grep "^$USE" /etc/passwd || useradd -m $USE
+usermod $USE -aG wheel -s /bin/zsh
timedatectl set-ntp true
-if [ ! -e /home/$USER/.ssh/id_rsa ]; then sudo -u $USER ssh-keygen; fi
+if [ ! -e /home/$USE/.ssh/id_rsa ]; then sudo -u $USE ssh-keygen; fi
sh regional.sh # Region specific setup
hwclock --systohc
sh mod.sh
ip link
-echo -n "wpa_supplicant@"
-read INTER
systemctl enable wpa_supplicant@$INTER
sh source.sh
diff --git a/config.sh b/config.sh
index c15bcc1..c7e2d1e 100755
--- a/config.sh
+++ b/config.sh
@@ -8,7 +8,7 @@ for file in $(find src -type f); do
done
for file in $(find home -type f); do
- export clean=/home/$USER/$(echo $file | cut -c 4-)
- install -o $USER -d $(dirname $clean)
- install -o $USER $file $clean
+ export clean=/home/$USE/$(echo $file | cut -c 4-)
+ install -o $USE -d $(dirname $clean)
+ install -o $USE $file $clean
done
diff --git a/install.sh b/install.sh
index 9b4540f..716ae70 100755
--- a/install.sh
+++ b/install.sh
@@ -44,6 +44,9 @@ cp -r . /mnt
touch installed
fi
#echo "arch-chroot into the new system and run dotfiles/build.sh"
+ip link
+echo -n "wpa_supplicant@"
+read INTER
arch-chroot /mnt << EOF
cd dotfiles
sh build.sh