From eac3f38a6c49308c68bf84936b957082b492c14c Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 6 Jul 2023 21:20:10 +0000 Subject: [PATCH] Write script which will be used by porkbun-dynamic-dns-python that adds the public IPv4 address to NetworkManager --- nmpubip | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 nmpubip 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