...
 
Commits (2)
......@@ -112,7 +112,7 @@ function apply_network(conf, target_state)
x:delete('network', DHCP_IFACE, 'ip6addr')
x:set('network', 'client6', 'proto', 'dhcpv6')
x:set("batman-adv", "bat0", "gw_mode", "client")
os.execute('rm /tmp/range6')
os.execute('rm /tmp/range6 -f')
end
local changes = x:changes()
......@@ -121,8 +121,10 @@ function apply_network(conf, target_state)
x:commit('dhcp')
x:commit('network')
x:commit('batman-adv')
print("Reconfiguring network...")
os.execute("/etc/init.d/network restart")
os.execute("/etc/init.d/dnsmasq restart")
util.sleep(20)
end
local range6 = util.read_file('/tmp/range6')
if range6 ~= conf.range6 then
......