diff options
author | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
commit | 5dd7ed82e788ebad2e920e0f2db7468cc6547cfe (patch) | |
tree | f467412e09912ababcd8fe6c05193d829f514dcd /community/unetbootin/unetbootin.sh | |
parent | 3009e8addb4a894329bf8ab3e8fb763361833978 (diff) |
Sat Dec 29 02:10:20 PST 2012
Diffstat (limited to 'community/unetbootin/unetbootin.sh')
-rw-r--r-- | community/unetbootin/unetbootin.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/community/unetbootin/unetbootin.sh b/community/unetbootin/unetbootin.sh new file mode 100644 index 000000000..a6c8969b6 --- /dev/null +++ b/community/unetbootin/unetbootin.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# wrapper script for starting unetbootin with root permissions +ELF=/usr/bin/unetbootin.elf +if [ -e /usr/bin/pkexec ]; then + pkexec $ELF && exit 0 +fi +if [ -z "$KDE_FULL_SESSION" ]; then + if [ -e /usr/bin/gksudo ]; then + gksudo $ELF && exit 0 + fi + if [ -e /usr/bin/gksu ]; then + gksu $ELF && exit 0 + fi + echo "Could not use pkexec, gksudo or gksu" + $ELF && exit 0 || exit 1 +fi +if [ -e /usr/bin/kdesudo ]; then + kdesudo $ELF && exit 0 +fi +if [ -e /usr/bin/kdesu ]; then + kdesu $ELF && exit 0 +fi +echo "Could not use kdesudo or kdesu" +$ELF && exit 0 || exit 1 |