diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-09-04 17:05:48 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-09-04 17:05:48 +0200 |
commit | 7417edd15f355812513f31a3952c078e0b56ac6b (patch) | |
tree | 85b7222c349851ef995421804f71a50a9f646166 /src/aif.sh | |
parent | 2ef92eaa5f1106d8f1b379a8a94a477a0877bb1f (diff) |
allow only executing aif as user root
Diffstat (limited to 'src/aif.sh')
-rwxr-xr-x | src/aif.sh | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |