aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-06-04 20:46:32 +1200
committerDavid <dbphillipsnz@gmail.com>2014-06-04 20:46:32 +1200
commit66e266956c51be09cfc9a8c30c74d1ce80b834e0 (patch)
tree4ca8b4291cee3f03a1f765a84ce76d06191b1304
parentd01434fda086a9307b274db3924dbe21f2fec7ef (diff)
downloadparamano-66e266956c51be09cfc9a8c30c74d1ce80b834e0.tar.xz
Sudo prompt halt fix
-rw-r--r--trayfreq_set_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/trayfreq_set_interface.c b/trayfreq_set_interface.c
index a2e20c8..592c8c5 100644
--- a/trayfreq_set_interface.c
+++ b/trayfreq_set_interface.c
@@ -28,7 +28,7 @@ void si_gov(char* gov, int core)
char cmd[256];
if (getuid() != ROOT_UID)
{
- sprintf(cmd, SUDO" "TRAYFREQ_SET" -g %s -c %i",gov,core);
+ sprintf(cmd, SUDO" -n "TRAYFREQ_SET" -g %s -c %i &",gov,core);
} else {
sprintf(cmd, TRAYFREQ_SET" -g %s -c %i",gov,core);
}
@@ -41,7 +41,7 @@ void si_freq(int freq, int core)
char cmd[256];
if (getuid() != ROOT_UID)
{
- sprintf(cmd, SUDO" "TRAYFREQ_SET" -f %i -c %i",freq,core);
+ sprintf(cmd, SUDO" -n "TRAYFREQ_SET" -f %i -c %i &",freq,core);
} else {
sprintf(cmd, TRAYFREQ_SET" -f %i -c %i",freq,core);
}