Ver código fonte

The ntk-wifi script should work now, Including it's new --undo argument.

MissValeska 9 anos atrás
pai
commit
de85724e7b
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3
    2
      src/scripts/ntk-wifi

+ 3
- 2
src/scripts/ntk-wifi Ver arquivo

@@ -21,9 +21,10 @@ fi
21 21
 
22 22
 wlan=$1
23 23
 
24
-echo "$2"
24
+ARGSTR1="-u"
25
+ARGSTR2="--undo"
25 26
 
26
-if $2 == "-u" $2 == "--undo"
27
+if [ x$2 = x$ARGSTR1 -o x$2 = x$ARGSTR2 ]
27 28
 then
28 29
 iwconfig $wlan mode managed
29 30
 ifconfig $wlan down

Carregando…
Cancelar
Salvar