View | Details | Raw Unified
Collapse All | Expand All

(-) /tmp/portage/wifi-radar-1.9.3-r1/work/wifi-radar-1.9.3/wifi-radar.sh (-3 / +19 lines)
 Lines 1-4    Link Here 
#!/bin/bash
#!/bin/bash
# Shell wrapper that calls wifi-radar.py using sudo
PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
# I haven't been able to get gksudo to work yet... so stick with su for now 
sudo /usr/sbin/wifi-radar $*
MODE=su
WIFI=/usr/sbin/wifi-radar
WIFI_ICON=/usr/share/pixmaps/wifi-radar.png
# Make the message appropriate to the mode
if [[ mode -eq "su" ]]; then
	MESSAGE="Please enter your root password to run wifi-radar"
elif [[ mode -eq "sudo" ]]; then
	MESSAGE="Please enter your user password to run wifi-radar"
fi
# Call gksu/gksudo to launch /usr/sbin/wifi-radar
gk$MODE --disable-grab \
	--title "WiFi Radar" \
	--message "$MESSAGE" \
	--icon $WIFI_ICON \
	$WIFI $* 2>/dev/null