diff options
author | lassulus <lassulus@googlemail.com> | 2013-06-30 14:25:29 +0200 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-06-30 14:25:29 +0200 |
commit | af1d85fa6b390f8119c4ba695b3f075bd726806e (patch) | |
tree | 922822531854bfe6caf4a08e2b13a3cd400aade9 /usr/lib/autowifi/plugins/11belkin_wps | |
parent | 1d591aa1f4af30f41f2d44656d5b86e73048cffd (diff) | |
parent | b99bbe256c030cec78b1c96d08eb02860dda911c (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} |