diff options
| author | Craig Jennings <c@cjennings.net> | 2024-11-10 18:06:18 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-11-10 18:06:18 -0600 |
| commit | 9bf75ac7a9ee6ee4f80afacbb1ea5d18fbcf1416 (patch) | |
| tree | 8a2fb0a8dfc5a8ea1a4beef3569d8b3e1b414bfe | |
| parent | 26d99c78bea157ce729ad8858b4b7a931d7dae20 (diff) | |
adding ip address info
| -rwxr-xr-x | init | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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'" |
