From 09c2e60cd41fcb07604800a84180d7683e8e1856 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 3 Feb 2018 03:02:20 +0100 Subject: [PATCH] gluon-core: upgrade/110-network: fix formatting --- .../luasrc/lib/gluon/upgrade/110-network | 100 ++++++++---------- 1 file changed, 44 insertions(+), 56 deletions(-) diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/110-network b/package/gluon-core/luasrc/lib/gluon/upgrade/110-network index 6ca0dc84..88e46454 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/110-network +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/110-network @@ -5,78 +5,66 @@ local sysctl = require 'gluon.sysctl' local sysconfig = require 'gluon.sysconfig' -uci:section('network', 'interface', 'wan', - { - ifname = sysconfig.wan_ifname, - type = 'bridge', - igmp_snooping = true, - multicast_querier = false, - peerdns = false, - auto = true, - } -) +uci:section('network', 'interface', 'wan', { + ifname = sysconfig.wan_ifname, + type = 'bridge', + igmp_snooping = true, + multicast_querier = false, + peerdns = false, + auto = true, +}) if not uci:get('network', 'wan', 'proto') then - uci:set('network', 'wan', 'proto', 'dhcp') + uci:set('network', 'wan', 'proto', 'dhcp') end -uci:section('network', 'interface', 'wan6', - { - ifname = 'br-wan', - peerdns = false, - ip6table = 1, - sourcefilter = false, - } -) +uci:section('network', 'interface', 'wan6', { + ifname = 'br-wan', + peerdns = false, + ip6table = 1, + sourcefilter = false, +}) if not uci:get('network', 'wan6', 'proto') then - uci:set('network', 'wan6', 'proto', 'dhcpv6') + uci:set('network', 'wan6', 'proto', 'dhcpv6') end -uci:section('network', 'rule6', 'wan6_lookup', - { - mark = '0x01/0x01', - lookup = 1, - } -) +uci:section('network', 'rule6', 'wan6_lookup', { + mark = '0x01/0x01', + lookup = 1, +}) -uci:section('network', 'route6', 'wan6_unreachable', - { - type = 'unreachable', - interface = 'loopback', - target = '::/0', - gateway = '::', - table = 1, - metric = 65535, - } -) +uci:section('network', 'route6', 'wan6_unreachable', { + type = 'unreachable', + interface = 'loopback', + target = '::/0', + gateway = '::', + table = 1, + metric = 65535, +}) uci:save('network') -uci:section('firewall', 'rule', 'wan_igmp', - { - name = 'Allow-IGMP', - src = 'wan', - proto = 'igmp', - family = 'ipv4', - target = 'ACCEPT', - } -) +uci:section('firewall', 'rule', 'wan_igmp', { + name = 'Allow-IGMP', + src = 'wan', + proto = 'igmp', + family = 'ipv4', + target = 'ACCEPT', +}) -uci:section('firewall', 'rule', 'wan_mld', - { - name = 'Allow-MLD', - src = 'wan', - proto = 'icmp', - src_ip = 'fe80::/10', - icmp_type = { '130/0', '131/0', '132/0', '143/0', }, - family = 'ipv6', - target = 'ACCEPT', - } -) +uci:section('firewall', 'rule', 'wan_mld', { + name = 'Allow-MLD', + src = 'wan', + proto = 'icmp', + src_ip = 'fe80::/10', + icmp_type = { '130/0', '131/0', '132/0', '143/0', }, + family = 'ipv6', + target = 'ACCEPT', +}) uci:save('firewall')