summaryrefslogtreecommitdiffstats
path: root/ip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ip.sh')
-rwxr-xr-xip.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/ip.sh b/ip.sh
new file mode 100755
index 0000000..d5b9a98
--- /dev/null
+++ b/ip.sh
@@ -0,0 +1,8 @@
+#! /bin/bash
+
+name=$(uname -n | cut -d '.' -f 1)
+[ -f "ip/$name.sh" ] || { echo "Host $name not configured"; exit 1; }
+
+systemctl stop firewalld
+
+ip/$name.sh