This commit is contained in:
Didier Slof 2022-12-13 13:46:08 +01:00
parent 6591b66247
commit b622e351cc
Signed by: didier
GPG key ID: 01E71F18AA4398E5

7
deploy-tools.sh Normal file → Executable file
View file

@ -1,11 +1,10 @@
#!/bin/sh
if [ ! "$UID" = "0" ]; then
echo "# script must be ran as root"
exit 1
if (( $EUID != 0 )); then
echo "Please run as root"
exit
fi
case $1 in
router)
cp tools/router.sh /usr/local/bin/router.sh