diff options
| author | Gioacchino Mazzurco | 2014-06-10 17:29:14 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2014-06-11 10:22:24 +0000 |
| commit | 6e70adc5eca0dc1cc52a5838e86d937efdf8a38c (patch) | |
| tree | 4de48c35928468676108a940f683302a00fdb92a | |
| parent | 59217785704fca27d2c7a19e279d27c384a452cd (diff) | |
| download | netifd-6e70adc5eca0dc1cc52a5838e86d937efdf8a38c.tar.gz | |
Reorder alfabetically device type matching as they are growing in number
Signed-off-by: Gioacchino Mazzurco <gmazzurco89@gmail.com>
| -rw-r--r-- | config.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -167,16 +167,16 @@ config_init_devices(void) type = uci_lookup_option_string(uci_ctx, s, "type"); if (type) { - if (!strcmp(type, "bridge")) + if (!strcmp(type, "8021ad")) + devtype = &vlandev_device_type; + else if (!strcmp(type, "8021q")) + devtype = &vlandev_device_type; + else if (!strcmp(type, "bridge")) devtype = &bridge_device_type; - else if (!strcmp(type, "tunnel")) - devtype = &tunnel_device_type; else if (!strcmp(type, "macvlan")) devtype = &macvlan_device_type; - else if (!strcmp(type, "8021ad")) - devtype = &vlandev_device_type; - else if (!strcmp(type, "8021q")) - devtype = &vlandev_device_type; + else if (!strcmp(type, "tunnel")) + devtype = &tunnel_device_type; } if (!devtype) |