diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-08-05 03:07:16 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-08-05 03:07:16 +0200 |
commit | d721f36bef886fbccb61238235244e51d930abad (patch) | |
tree | 548bcd049692d8f3e507eb552bd82e66b6be8e3f /ip.sh | |
download | mlx-d721f36bef886fbccb61238235244e51d930abad.tar.gz mlx-d721f36bef886fbccb61238235244e51d930abad.tar.bz2 mlx-d721f36bef886fbccb61238235244e51d930abad.tar.xz mlx-d721f36bef886fbccb61238235244e51d930abad.zip |
ipecamera3
Diffstat (limited to 'ip.sh')
-rwxr-xr-x | ip.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,8 @@ +#! /bin/bash + +name=$(uname -n | cut -d '.' -f 1) +[ -f "ip/$name.sh" ] || { echo "Host $name not configured"; exit 1; } + +systemctl stop firewalld + +ip/$name.sh |