]> git.donarmstrong.com Git - bin.git/blobdiff - cycle_wireless
add reset usb bus command
[bin.git] / cycle_wireless
index 7c6b35036e50c2a74f927fb3300569b70cd63941..dc949cca4e8dd06ecf0c9dff23f9cc10b6897f80 100755 (executable)
@@ -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";