summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-11-29 15:35:10 -0600
committerCraig Jennings <c@cjennings.net>2024-11-29 15:35:10 -0600
commit1a5d951707aff693fa97816e64fc56a77cdabfb1 (patch)
treee4ba19bb3cac4fe74c91d6046800a5fdc87084c9 /init
parent8a57063b8c3e6a65858298a8eaa7970b324d9f3b (diff)
another attempt at showing the ip address properly
Diffstat (limited to 'init')
-rwxr-xr-xinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/init b/init
index d7ccb78..47ab988 100755
--- a/init
+++ b/init
@@ -12,7 +12,7 @@ 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)
+ipaddress=$(ip addr show $interface_up | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)
# start the ssh daemon
systemctl start sshd