Changeset 13525 in genesis


Ignore:
Timestamp:
Dec 16, 2015, 9:05:56 PM (9 years ago)
Author:
rick
Message:

Convert to autobridge, since addm will fail if interface is missing (like ue0 for example).

While here try to fix spaces in SSIDs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r13524 r13525  
    685685       
    686686      output += "wlans_%(autogen_ifbase)s='%(autogen_ifname)s'\n" % ifacedump
    687       output += ("create_args_%(autogen_ifname)s='wlanmode %(autogen_wlanmode)s mode " +\
    688         "%(type)s ssid \"%(ssid)s\" %(autogen_extra)s channel %(channel)s'\n") % ifacedump
     687      output += ("create_args_%(autogen_ifname)s=\"wlanmode %(autogen_wlanmode)s mode " +\
     688        "%(type)s ssid \\\"%(ssid)s\\\" %(autogen_extra)s channel %(channel)s\"\n") % ifacedump
    689689      output += "\n"
    690690
     
    892892
    893893  output += "\n"
    894   output += "cloned_interfaces='bridge0'\n"
    895894
    896895  # Details like SSID
     
    917916
    918917    if iface == 'bridge0':
    919       output += "ifconfig_bridge0='addm %s %s up'\n" % (' addm '.join(datadump['autogen_dhcp_interfaces']), addrs[0][0])
     918      output += "cloned_interfaces='bridge0'\n"
     919      output += "autobridge_interfaces='bridge0'\n"
     920      output += "autobridge_bridge0='%s'\n" % ' '.join(datadump['autogen_dhcp_interfaces'])
     921      output += "ifconfig_bridge0='%s up'\n" % addrs[0][0]
    920922    else:
    921923      output += "ifconfig_%s='inet %s'\n" % (iface, addrs[0][0])
Note: See TracChangeset for help on using the changeset viewer.