X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cycle_wireless;h=dc949cca4e8dd06ecf0c9dff23f9cc10b6897f80;hb=1886c7247cb16ed68a78cd5550b152689a465999;hp=7c6b35036e50c2a74f927fb3300569b70cd63941;hpb=06ed895f80cbf120c30383095654f94d51ad6f79;p=bin.git diff --git a/cycle_wireless b/cycle_wireless index 7c6b350..dc949cc 100755 --- a/cycle_wireless +++ b/cycle_wireless @@ -1,15 +1,6 @@ #!/bin/sh -NETWORK="$1" -WIRELESS="$2" - -if [ -z "$NETWORK" ]; then - NETWORK="homewlan"; -fi; - -if [ -z "$WIRELESS" ]; then - WIRELESS="wireless"; -fi; +WIRELESS="$1" # First try a minor cycle @@ -35,4 +26,4 @@ if [ "$WIRELESS" == "wireless" ]; then fi; sleep 2s; fi; -sudo ifup "wireless=${NETWORK}"; +sudo ifup "wireless";