treewide: move sysctl settings to /etc/sysctl.d
net.ipv6.conf.br-client.forwarding is moved from gluon-client-bridge to gluon-mesh-batman-adv, as the setting is not useful with non-bridged protocols.
This commit is contained in:
parent
0b4340b5a6
commit
25b32ec2fe
@ -1,7 +1,6 @@
|
||||
#!/usr/bin/lua
|
||||
|
||||
local sysconfig = require 'gluon.sysconfig'
|
||||
local sysctl = require 'gluon.sysctl'
|
||||
local util = require 'gluon.util'
|
||||
|
||||
local uci = require('simple-uci').cursor()
|
||||
@ -72,6 +71,3 @@ uci:section('dhcp', 'dhcp', 'local_client', {
|
||||
|
||||
uci:save('dhcp')
|
||||
uci:save('firewall')
|
||||
|
||||
|
||||
sysctl.set('net.ipv6.conf.br-client.forwarding', 0)
|
||||
|
1
package/gluon-core/files/etc/sysctl.d/30-gluon-core.conf
Normal file
1
package/gluon-core/files/etc/sysctl.d/30-gluon-core.conf
Normal file
@ -0,0 +1 @@
|
||||
vm.panic_on_oom=1
|
@ -1,7 +1,6 @@
|
||||
#!/usr/bin/lua
|
||||
|
||||
local uci = require('simple-uci').cursor()
|
||||
local sysctl = require 'gluon.sysctl'
|
||||
local sysconfig = require 'gluon.sysconfig'
|
||||
|
||||
|
||||
@ -68,7 +67,3 @@ uci:section('firewall', 'rule', 'wan_mld', {
|
||||
})
|
||||
|
||||
uci:save('firewall')
|
||||
|
||||
|
||||
sysctl.set('net.ipv6.conf.all.accept_ra', 0)
|
||||
sysctl.set('net.ipv6.conf.default.accept_ra', 0)
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/usr/bin/lua
|
||||
|
||||
local sysctl = require 'gluon.sysctl'
|
||||
|
||||
sysctl.set('vm.panic_on_oom', 1)
|
@ -0,0 +1,2 @@
|
||||
net.ipv6.conf.br-client.forwarding=0
|
||||
net.ipv6.conf.local-node.forwarding=0
|
@ -6,7 +6,6 @@
|
||||
|
||||
local site = require 'gluon.site'
|
||||
local sysconfig = require 'gluon.sysconfig'
|
||||
local sysctl = require 'gluon.sysctl'
|
||||
local util = require 'gluon.util'
|
||||
local uci = require('simple-uci').cursor()
|
||||
|
||||
@ -51,6 +50,3 @@ uci:set_list('firewall', 'drop', 'network', networks)
|
||||
uci:delete('firewall', 'local_node_dns')
|
||||
|
||||
uci:save('firewall')
|
||||
|
||||
|
||||
sysctl.set('net.ipv6.conf.local-node.forwarding', 0)
|
||||
|
Loading…
Reference in New Issue
Block a user