Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2 from liar/master

3 small fixes
  • Loading branch information...
commit 467ba9d00d2372681b753c7591391b7501b56a53 2 parents f4d3059 + 9b15dd4
@pbrisbin authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 wifi-pipe
View
6 wifi-pipe
@@ -51,7 +51,7 @@ print_menu() {
/\<IE:.*WPA.*/ { security="wpa" }
END { if (essid) print essid, security, quality[2]/quality[3]*100 }'
- iwlist $interface scan 2>/dev/null | awk "$parser" | sort -t= -nrk3 > /tmp/networks.tmp
+ iwlist $interface scan 2>/dev/null | awk "$awkscript" | sort -t= -nrk3 > /tmp/networks.tmp
if [[ ! -s /tmp/networks.tmp ]]; then
rm /tmp/networks.tmp
@@ -61,7 +61,7 @@ print_menu() {
echo '<openbox_pipe_menu>'
while IFS='=' read -r essid security quality; do
echo "<item label=\"$essid ($security) ${quality/.*/}%\">" # trim decimals
- echo ' <action name=\"Execute\">'
+ echo ' <action name="Execute">'
echo " <command>sudo $0 $interface connect \"$essid\"</command>"
echo ' </action>'
echo '</item>'
@@ -90,7 +90,7 @@ connect() {
profile_file="$(create_profile "$essid" "$interface" "$security" "$key")"
fi
- if !/usr/bin/netcfg "$profile" > /tmp/output.tmp; then
+ if ! /usr/bin/netcfg "$profile" > /tmp/output.tmp; then
# connect failed, ask about removal of created profile
if zenity --question --title="Connection failed" \
--text="$(grep -Eo "[\-\>]\ .*$" /tmp/output.tmp) \n Remove $profile_file?" \
Please sign in to comment.
Something went wrong with that request. Please try again.