Initial incremental port from legacy EmComm Tools project

This commit is contained in:
ham
2024-03-20 04:22:54 -07:00
parent 4c1b86a1b2
commit f7f27a008f
22 changed files with 345 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
#
# Author : Gaston Gonzalez
# Date : 16 March 2024
# Purpose : Global functions
function exitIfNotRoot() {
if [ $EUID -ne 0 ]; then
echo "Exiting. You must be root."
echo "Try running: sudo ./$(basename $0)"
exit -1
fi
}