shell-host/firewall/firewall.inst
David Kebler f42ff4420d updated firewall functions/alias
updated ui functions
2024-04-17 12:10:02 -07:00

11 lines
469 B
Bash
Executable file

#!/bin/bash
if command -v firewall-cmd >/dev/null; then
if [[ $BASH_SHELL_HOSTNAME ]]; then
[[ ! -d $BASH_SHELL_HOSTNAME/load ]] && mkdir $BASH_SHELL_HOSTNAME/load
ln -s $BASH_SHELL_HOST/firewall/firewall $BASH_SHELL_HOSTNAME/load/firewall
cat $BASH_SHELL_HOSTNAME/load/firewall
else
hostn=$(basename $BASH_SHELL_BASE)/$(hostnamectl hostname)
[[ -d $hostn ]] && echo $hostn exists || echo $hostn does not exist
fi
fi