From 935680f31fce46c540390ab329c184498f8d5292 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Fri, 21 Jan 2011 10:53:38 +0000 Subject: [PATCH] Forget to commit --- Linux/scripts/Check-if-root.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Linux/scripts/Check-if-root.sh diff --git a/Linux/scripts/Check-if-root.sh b/Linux/scripts/Check-if-root.sh new file mode 100644 index 0000000..15cbbd2 --- /dev/null +++ b/Linux/scripts/Check-if-root.sh @@ -0,0 +1,15 @@ +#!/bin/bassh -e + +if [ $UID != 0 ] +then + echo + echo "..ERROR.." + echo "===================================================" + echo "REMEMBER !" + echo "" + echo "YOU NEED TO RUN THIS ONE AS root" + echo "===================================================" + echo + echo + exit 0 +fi -- 2.45.1