summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-11-29 15:45:33 -0600
committerCraig Jennings <c@cjennings.net>2024-11-29 15:45:33 -0600
commit1b2d7ac1d6da9e13c69683b55aa146f07707ab57 (patch)
tree01e33fcc1cf72396d0c348f13d51425db55f1c8a /init
parent38c8eb12770eb964505e5e3183b98f3ec8a2c3de (diff)
launch archinstall after waiting.
Diffstat (limited to 'init')
-rwxr-xr-xinit12
1 files changed, 6 insertions, 6 deletions
diff --git a/init b/init
index 851ca0f..a9ac5f3 100755
--- a/init
+++ b/init
@@ -1,7 +1,7 @@
#!/bin/sh
# update and install tmux and git
-pacman -Sy --noconfirm
+pacman -Sy --noconfirm >> /dev/null
pacman -S --noconfirm tmux git
# change the root password
@@ -11,14 +11,14 @@ echo "root:welcome" | chpasswd
hostname=$(</etc/hostname)
# identify which interface is up, then find the ip address
-# interface_up=$(ip addr show | grep -v "lo: " | grep "state UP" -B2 | head -n1 | awk '{print $2}' | sed 's/://')
-# ipaddress=$(ip addr show $interface_up | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)
-
interface_up=$(ip -br addr show | grep UP | grep -v 'lo' | awk '{print $1}' | head -n1)
ipaddress=$(ip addr show $interface_up | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)
# start the ssh daemon
systemctl start sshd
-echo ""; echo ""; echo "init complete. "
-echo "you may ssh root@$hostname or ssh root@$ipaddress using the password 'welcome'"
+echo ""; echo ""
+echo "init complete. you may ssh root@$hostname or ssh root@$ipaddress using the password 'welcome'"
+echo "Press control-c to stop now. Launching archinstall in 5 seconds."
+sleep 5
+archinstall