summaryrefslogtreecommitdiff
path: root/src/aif.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-09-04 17:05:48 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-09-04 17:05:48 +0200
commit7417edd15f355812513f31a3952c078e0b56ac6b (patch)
tree85b7222c349851ef995421804f71a50a9f646166 /src/aif.sh
parent2ef92eaa5f1106d8f1b379a8a94a477a0877bb1f (diff)
allow only executing aif as user root
Diffstat (limited to 'src/aif.sh')
-rwxr-xr-xsrc/aif.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/aif.sh b/src/aif.sh
index 0b3579d..8920b37 100755
--- a/src/aif.sh
+++ b/src/aif.sh
@@ -33,6 +33,8 @@ process_args ()
###### perform actual logic ######
echo "Welcome to $TITLE"
+[[ $EUID -ne 0 ]] && die_error "You must have root privileges to run AIF"
+
mount -o remount,rw / &>/dev/null
cleanup_runtime