diff options
author | makefu <github@syntax-fehler.de> | 2013-06-26 13:26:56 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-06-26 13:26:56 +0200 |
commit | ae52241d3802079628a87a534ce1853d1d46c82a (patch) | |
tree | 9b37886b3ce86da81febfe3594c8a31b5694870f /usr/lib/autowifi/plugins/11belkin_wps | |
parent | 410ddbd1f77e2f65de6e6b6c86daf031e296028d (diff) | |
parent | a0f4644017949e17b45f23a3870afa6f6c2823cb (diff) |
Merge branch 'master' of github.com:krebscode/autowifi
Diffstat (limited to 'usr/lib/autowifi/plugins/11belkin_wps')
-rwxr-xr-x | usr/lib/autowifi/plugins/11belkin_wps | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr/lib/autowifi/plugins/11belkin_wps b/usr/lib/autowifi/plugins/11belkin_wps index 82140523..65e08624 100755 --- a/usr/lib/autowifi/plugins/11belkin_wps +++ b/usr/lib/autowifi/plugins/11belkin_wps @@ -15,13 +15,8 @@ cd $(dirname $(readlink -f $0)) . ../lib/wps parse_plugin_args "$@" -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 - echo "VENDOR MAC $VENDOR_MAC not affected" - exit 1 -fi + +! check_vendor_mac "$VENDOR_MAC" 002275 001CDF 09863B && echo "VENDOR MAC $VENDOR_MAC not affected" && exit 1 calc_belkin(){ PRIVATE_MAC=${1} |