summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
l---------ip2
-rwxr-xr-xip-hzdr/CELSIUS-R940power.sh5
-rwxr-xr-xip.sh2
3 files changed, 7 insertions, 2 deletions
diff --git a/ip b/ip
index 2833425..ade8ba4 120000
--- a/ip
+++ b/ip
@@ -1 +1 @@
-ip-p2p \ No newline at end of file
+ip-hzdr \ No newline at end of file
diff --git a/ip-hzdr/CELSIUS-R940power.sh b/ip-hzdr/CELSIUS-R940power.sh
new file mode 100755
index 0000000..0b99cc2
--- /dev/null
+++ b/ip-hzdr/CELSIUS-R940power.sh
@@ -0,0 +1,5 @@
+. functions.sh
+
+mlxconf eth
+
+ipset ens4 10.0.0.100
diff --git a/ip.sh b/ip.sh
index d5b9a98..45736b2 100755
--- a/ip.sh
+++ b/ip.sh
@@ -3,6 +3,6 @@
name=$(uname -n | cut -d '.' -f 1)
[ -f "ip/$name.sh" ] || { echo "Host $name not configured"; exit 1; }
-systemctl stop firewalld
+[ -f "/usr/bin/firewall-cmd" ] && systemctl stop firewalld
ip/$name.sh