Browse Source

added fn_rootcheck

pull/254/merge
Daniel Gibbs 10 years ago
parent
commit
af0bc60e00
  1. 10
      functions/fn_rootcheck

10
functions/fn_rootcheck

@ -0,0 +1,10 @@
#!/bin/bash
# LGSM fn_rootcheck function
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 011214
if [ $(whoami) = "root" ]; then
fn_printfailnl "Script will not run as root!"
exit
fi
Loading…
Cancel
Save