From 7417edd15f355812513f31a3952c078e0b56ac6b Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 4 Sep 2009 17:05:48 +0200 Subject: allow only executing aif as user root --- src/aif.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/aif.sh') 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 -- cgit v1.2.3-54-g00ecf