diff options
Diffstat (limited to 'init')
| -rwxr-xr-x | init | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,11 +8,11 @@ pacman -S --noconfirm tmux git echo "root:welcome" | chpasswd # find the hostname from the file -hostname=$(</etc/hostname) +hostname=$(cat /etc/hostname) # identify which interface is up, then find the ip address 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) +ipaddress=$(ip addr show "$interface_up" | grep 'inet ' | awk '{print $2}' | cut -d/ -f1) # start the ssh daemon systemctl start sshd |
