diff options
| author | lassulus <lassulus@googlemail.com> | 2013-01-31 19:41:11 +0100 |
|---|---|---|
| committer | lassulus <lassulus@googlemail.com> | 2013-01-31 19:41:11 +0100 |
| commit | 5f8f9ea9e5f10abcef9c12d48345c098dca78199 (patch) | |
| tree | c4dd748d5c152445569d7dfd2d0877ef66a95daa /minikrebs/profiles/nfc-login/customfiles/usr/bin/login-manager | |
| parent | 7c050acc2559c622b831d9193e2336c15f42de6d (diff) | |
| parent | 9461f6ece9f674588327c6dc3199fc0d7618ac48 (diff) | |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'minikrebs/profiles/nfc-login/customfiles/usr/bin/login-manager')
| -rwxr-xr-x | minikrebs/profiles/nfc-login/customfiles/usr/bin/login-manager | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/minikrebs/profiles/nfc-login/customfiles/usr/bin/login-manager b/minikrebs/profiles/nfc-login/customfiles/usr/bin/login-manager index 63f35c74..f22a209e 100755 --- a/minikrebs/profiles/nfc-login/customfiles/usr/bin/login-manager +++ b/minikrebs/profiles/nfc-login/customfiles/usr/bin/login-manager @@ -1,18 +1,18 @@ #!/bin/sh -#!/bin/sh #LOGIN_HOST=heidi.shack #LOGIN_HOST=heidi:5000 LOGIN_HOST=10.42.10.38:5000 all_led(){ - for i in 3g wlan lan wps;do - led $i $1 - done + for i in 3g wlan lan wps;do + led $i $1 + + done } led(){ - LED="$1" - ACTION="$2" - echo $ACTION > /sys/class/leds/tp-link:green:$LED/trigger + /usr/bin/mrled $1 $2 } + +# fix for mr3020 weirdness while sleep 1; do uid=$(nfc-list | grep UID | cut -d: -f 2 | sed 's/ //g') if ! [ x"$uid" = x ];then |
