Can anyone see this script? I want to put it in a sh file. When I connect my Ethernet adapter, I don't want to re-enter all commands. I just want to run it from the shell. Is that correct?
#!/bin/sh ip link set eth0 up sleep 1; ip addr add 192.168.178.50/24 dev eth0 sleep 1; ip route add default via 192.168.178.1 dev eth0 sleep 1; ndc network create 1 sleep 1; ndc network interface add 1 eth0 sleep 1; ndc resolver setnetdns 1 18.104.22.168 22.214.171.124 sleep 1; ndc network default set 1