aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/bin/rootsudo
diff options
context:
space:
mode:
Diffstat (limited to 'sdk/bin/rootsudo')
-rwxr-xr-xsdk/bin/rootsudo6
1 files changed, 6 insertions, 0 deletions
diff --git a/sdk/bin/rootsudo b/sdk/bin/rootsudo
new file mode 100755
index 0000000..3ff65f1
--- /dev/null
+++ b/sdk/bin/rootsudo
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ -f /etc/sudo.conf ] ; then
+ sudo root $*
+else
+ su root -c "$*"
+fi