summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-11-10 18:06:18 -0600
committerCraig Jennings <c@cjennings.net>2024-11-10 18:06:18 -0600
commit9bf75ac7a9ee6ee4f80afacbb1ea5d18fbcf1416 (patch)
tree8a2fb0a8dfc5a8ea1a4beef3569d8b3e1b414bfe
parent26d99c78bea157ce729ad8858b4b7a931d7dae20 (diff)
adding ip address info
-rwxr-xr-xinit14
1 files changed, 7 insertions, 7 deletions
diff --git a/init b/init
index b0f130a..e2c5eb4 100755
--- a/init
+++ b/init
@@ -1,12 +1,12 @@
- #!/bin/sh
-pacman-key --init
-pacman-key --populate
-pacman-key --refresh-keys
-pacman -Syy
+#!/bin/sh
+pacman -Syu
pacman -S --noconfirm tmux git
systemctl start sshd
echo "root:welcome" | chpasswd
-
hostname=$(</etc/hostname)
-echo ""; echo ""; echo "init complete. "; echo "you may ssh root@$hostname using the password 'welcome'"
+ipaddress=$(ip addr show wlan0 | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)
+
+
+echo ""; echo ""; echo "init complete. "
+echo "you may ssh root@$hostname or ssh root@ipaddress using the password 'welcome'"