#! /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