initial files

This commit is contained in:
Tomas M
2012-09-01 10:01:19 +01:00
parent 178d9174e0
commit f54fc6c651
3 changed files with 112 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
# Functions library :: for Linux Kit scripts 7
# Author: Tomas M. <http://www.linux-live.org>
#
allow_only_root()
{
# test if the script is started by root user. If not, exit
if [ "0$UID" -ne 0 ]; then
echo "Only root can run $(basename $0)"; exit 1
fi
}