summaryrefslogtreecommitdiffstats
path: root/usr/lib/autowifi/plugins/11belkin_wps
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-05-26 14:41:01 +0200
committermakefu <github@syntax-fehler.de>2013-05-26 14:41:01 +0200
commit91b2ec7821796c75bb3a56df951c6734d41a26bb (patch)
tree61971a9ab364483018b4977ca2c1ae227c360040 /usr/lib/autowifi/plugins/11belkin_wps
parentd42681fb63901254700cfbb35116cbdca9945463 (diff)
cleanup and usage for plugins
Diffstat (limited to 'usr/lib/autowifi/plugins/11belkin_wps')
-rwxr-xr-xusr/lib/autowifi/plugins/11belkin_wps8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/lib/autowifi/plugins/11belkin_wps b/usr/lib/autowifi/plugins/11belkin_wps
index 3820cf2e..1dba7377 100755
--- a/usr/lib/autowifi/plugins/11belkin_wps
+++ b/usr/lib/autowifi/plugins/11belkin_wps
@@ -11,15 +11,11 @@
# belkin.XXX 09:86:3B:XX:XX:XX F9K1104 v1000
cd $(dirname $(readlink -f $0))
-. ../lib/core
+. ../lib/plugin_core
. ../lib/wps
parse_plugin_args $@
-MAC=$(printf "%s" $2| sed 's/://g')
-if [ ${#MAC} -ne 12 ] ;then
- echo "MAC malformed"
- exit 1
-fi
+MAC=$(printf "%s" $MAC| sed 's/://g')
VENDOR_MAC=${MAC:0:6}
PRIVATE_MAC=${MAC:6:12}
if ! [ $VENDOR_MAC == "002275" -o $VENDOR_MAC == "001CDF" -o $VENDOR_MAC == "09863B" ] ;then