add SZ 1.52 updater files
[pandora-misc.git] / hotfix_updater / superzaxxon / run.sh
diff --git a/hotfix_updater/superzaxxon/run.sh b/hotfix_updater/superzaxxon/run.sh
new file mode 100755 (executable)
index 0000000..c114351
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+t=`which terminal`
+if [ -z "$t" ]; then
+  zenity --error --text='terminal is missing.'
+  exit 1
+fi
+
+gksudo -m "Firmware updater requires root permissions, please enter your password" id
+exec sudo -n terminal -x sh -c ./updater.sh