From b292dfe3dea7affa29e526c1328613f6e5ca8ed4 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 29 May 2013 20:37:39 +0200 Subject: move default_wps to back --- usr/lib/autowifi/plugins/30default_wps | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 usr/lib/autowifi/plugins/30default_wps (limited to 'usr/lib/autowifi/plugins/30default_wps') diff --git a/usr/lib/autowifi/plugins/30default_wps b/usr/lib/autowifi/plugins/30default_wps new file mode 100755 index 00000000..98be6a66 --- /dev/null +++ b/usr/lib/autowifi/plugins/30default_wps @@ -0,0 +1,6 @@ +#!/bin/sh +# on MANY WPS-enabled devices the pin is 12345670 , so we can give it a shot +# http://www.wotan.cc/?p=75 +cd $(dirname $(readlink -f $0)) +. ../lib/wps +try_wps_pin "$@" 12345670 -- cgit v1.2.3 From 20b1c6c2158fb12b6422c170d4a2a0f402864308 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 10 Jun 2013 20:30:41 +0200 Subject: finish refactoring new wpa_supplicant autowifi --- usr/lib/autowifi/plugins/30default_wps | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'usr/lib/autowifi/plugins/30default_wps') diff --git a/usr/lib/autowifi/plugins/30default_wps b/usr/lib/autowifi/plugins/30default_wps index 98be6a66..7f66d117 100755 --- a/usr/lib/autowifi/plugins/30default_wps +++ b/usr/lib/autowifi/plugins/30default_wps @@ -3,4 +3,15 @@ # http://www.wotan.cc/?p=75 cd $(dirname $(readlink -f $0)) . ../lib/wps -try_wps_pin "$@" 12345670 +. ../lib/plugin_core + +parse_plugin_args "$@" +DEFAULT_PIN="${DEFAULT_PIN:-12345670}" + +if has_wps "$ENC"; then + echo "trying PIN $DEFAULT_PIN against $ESSID" >&2 + try_wps_pin "$@" $DEFAULT_PIN +else + echo "Network $ESSID not WPS enabled" >&2 + exit 1 +fi -- cgit v1.2.3 From 7823e04b4b3f83f1efcc60f11892714b208db96c Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 27 Sep 2013 01:00:45 +0200 Subject: implement painmode --- usr/lib/autowifi/plugins/30default_wps | 1 + 1 file changed, 1 insertion(+) (limited to 'usr/lib/autowifi/plugins/30default_wps') diff --git a/usr/lib/autowifi/plugins/30default_wps b/usr/lib/autowifi/plugins/30default_wps index 7f66d117..ee7195e0 100755 --- a/usr/lib/autowifi/plugins/30default_wps +++ b/usr/lib/autowifi/plugins/30default_wps @@ -6,6 +6,7 @@ cd $(dirname $(readlink -f $0)) . ../lib/plugin_core parse_plugin_args "$@" +check_painmode DEFAULT_PIN="${DEFAULT_PIN:-12345670}" if has_wps "$ENC"; then -- cgit v1.2.3 From 0077e1839cda806e2285bea1ca223dbaf670e4ef Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 27 Sep 2013 02:22:15 +0200 Subject: make 30default_wps less verbose fix lib/wps posix compatibility by using == instead of = --- usr/lib/autowifi/plugins/30default_wps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/lib/autowifi/plugins/30default_wps') diff --git a/usr/lib/autowifi/plugins/30default_wps b/usr/lib/autowifi/plugins/30default_wps index ee7195e0..50ad2676 100755 --- a/usr/lib/autowifi/plugins/30default_wps +++ b/usr/lib/autowifi/plugins/30default_wps @@ -13,6 +13,6 @@ if has_wps "$ENC"; then echo "trying PIN $DEFAULT_PIN against $ESSID" >&2 try_wps_pin "$@" $DEFAULT_PIN else - echo "Network $ESSID not WPS enabled" >&2 + echo "Network $ESSID not WPS enabled" exit 1 fi -- cgit v1.2.3