From b74c0907fead1af067b4bd0ff7c19ab8f2aea7de Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 19 Apr 2016 10:26:13 +0100 Subject: [PATCH] sudo to admin control panel --- src/freedombone-controlpanel-user | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/freedombone-controlpanel-user b/src/freedombone-controlpanel-user index 2b100299..f040fc7a 100755 --- a/src/freedombone-controlpanel-user +++ b/src/freedombone-controlpanel-user @@ -780,12 +780,7 @@ function menu_admin { clear exit 0 fi - if grep -q "$USER ALL=(ALL) ALL" /etc/sudoers; then - sudo freedombone-controlpanel - else - clear - exit 0 - fi + sudo freedombone-controlpanel } function menu_top_level {