diff --git a/nmpubip b/nmpubip new file mode 100755 index 0000000..7fee767 --- /dev/null +++ b/nmpubip @@ -0,0 +1,6 @@ +#!/bin/bash + +if [ "$1" = "A" ]; then + nmcli con mod 'Wired connection 1' ipv4.addresses "$2" + systemctl restart NetworkManager +fi