meshwizard: add option addchannelbefore
authorPatrick Grimm <patrick@lunatiki.de>
Wed, 30 Jul 2014 21:20:52 +0000 (21:20 +0000)
committerPatrick Grimm <patrick@lunatiki.de>
Wed, 30 Jul 2014 21:20:52 +0000 (21:20 +0000)
contrib/package/community-profiles/files/etc/config/profile_berlin
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh

index debfd1f0ada107c0ee971b8aefcad437e47dfc81..78c148a328f5fb987d02b14de166f7523fc68d74 100644 (file)
@@ -1,7 +1,8 @@
 config 'community' 'profile'
        option 'name' 'Freifunk Berlin'
        option 'homepage' 'http://berlin.freifunk.net'
-       option 'ssid' 'berlin.freifunk.net'
+       option 'ssid' 'freifunk.net'
+       option 'ssid_scheme' 'addchannelbefore'
        option 'mesh_network' '104.0.0.0/8'
        option 'splash_network' '10.104.0.0/16'
        option 'splash_prefix' '27'
index 3d28e3956c9b21c03c7bb305f3a3097dc15e4315..7366fe6ea4181cf1cc2be8bfd240f3fc2744a4c6 100755 (executable)
@@ -65,6 +65,8 @@ bssid="$($dir/helpers/gen_bssid.sh $channel $community)"
 ssid="$profile_ssid"
 if [ "$profile_ssid_scheme" == "addchannel" ]; then
        ssid="$ssid - ch$channel"
+else if [ "$profile_ssid_scheme" == "addchannelbefore" ]; then
+       ssid="ch$channel.$ssid"
 fi
 
 uci batch << EOF