summarylogtreecommitdiffstats
path: root/iwscanner
blob: a4f57f94806b387b56565e8d0a80742bc14dab72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# Simple iwscanner launch script

CMD=/usr/share/iwscanner/iwscanner.py

if [ "$(id -ru)" -eq 0 ]; then
   # Already root user
   exec $CMD
fi

GKSU=/usr/bin/gksu
KDESU=/usr/bin/kdesu
if [ -e "$GKSU" ]; then
   exec $GKSU $CMD
elif [ -e "$KDESU" ]; then
   exec $KDESU -c $CMD
else
   printf "Unable to find suitable su application, please install gksu or kde-cli-tools (kdesu)\n" 1>&2
fi