summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-09-19 16:49:20 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-09-19 16:49:20 +0200
commitb3096929e693dac907842c1d8134ea09876c6fcf (patch)
tree61434f6636699a40b7e7745894ad69c1b9a6beaf
parent088438fe6643dce4195e52452fe995c2608b0a48 (diff)
downloadmlx-b3096929e693dac907842c1d8134ea09876c6fcf.tar.gz
mlx-b3096929e693dac907842c1d8134ea09876c6fcf.tar.bz2
mlx-b3096929e693dac907842c1d8134ea09876c6fcf.tar.xz
mlx-b3096929e693dac907842c1d8134ea09876c6fcf.zip
HZDR setupHEADmaster
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