summaryrefslogtreecommitdiffstats
path: root/ip.sh
blob: 45736b2c37103f0dfc79c415558d830acaeb3af2 (plain)
1
2
3
4
5
6
7
8
#! /bin/bash

name=$(uname -n | cut -d '.' -f 1)
[ -f "ip/$name.sh" ] || { echo "Host $name not configured"; exit 1; }

[ -f "/usr/bin/firewall-cmd" ] && systemctl stop firewalld

ip/$name.sh