contrib/meshwizard: Add option in community profiles to set the same bssid for every...
authorManuel Munz <freifunk@somakoma.de>
Fri, 5 Aug 2011 17:16:38 +0000 (17:16 +0000)
committerManuel Munz <freifunk@somakoma.de>
Fri, 5 Aug 2011 17:16:38 +0000 (17:16 +0000)
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/gen_bssid.sh

index fa042abaef8311a98a47393c2319e23d291969b0..c9be99786fc0c355dfb4544cde72bb10f59ef4a4 100755 (executable)
@@ -11,8 +11,9 @@ community=$2
 # Try to get BSSID from profile first
 config_load profile_$community
 config_get bssid bssidscheme $channel
+config_get bssid_all bssidscheme "all"
 
-if [ -z "$bssid" ]; then
+if [ -z "$bssid" ] && [ -z "$bssid_all" ]; then
        case $channel in
        [1-9])
                bssid="$(printf "%X\n" $channel)2:CA:FF:EE:BA:BE"