Administrator menu

This commit is contained in:
Bob Mottram 2016-02-27 22:29:05 +00:00
parent 2387255259
commit eab7c169b5
1 changed files with 2 additions and 0 deletions

View File

@ -541,11 +541,13 @@ function menu_email {
function menu_admin {
if [ ! -f /etc/sudoers ]; then
clear
exit 0
fi
if grep -q "$USER ALL=(ALL) ALL" /etc/sudoers; then
sudo freedombone-controlpanel
else
clear
exit 0
fi
}