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:
Matthias Schiffer 2018-04-13 12:45:18 +02:00
parent 0b4340b5a6
commit 25b32ec2fe
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
6 changed files with 3 additions and 18 deletions

View File

@ -1,7 +1,6 @@
#!/usr/bin/lua #!/usr/bin/lua
local sysconfig = require 'gluon.sysconfig' local sysconfig = require 'gluon.sysconfig'
local sysctl = require 'gluon.sysctl'
local util = require 'gluon.util' local util = require 'gluon.util'
local uci = require('simple-uci').cursor() local uci = require('simple-uci').cursor()
@ -72,6 +71,3 @@ uci:section('dhcp', 'dhcp', 'local_client', {
uci:save('dhcp') uci:save('dhcp')
uci:save('firewall') uci:save('firewall')
sysctl.set('net.ipv6.conf.br-client.forwarding', 0)

View File

@ -0,0 +1 @@
vm.panic_on_oom=1

View File

@ -1,7 +1,6 @@
#!/usr/bin/lua #!/usr/bin/lua
local uci = require('simple-uci').cursor() local uci = require('simple-uci').cursor()
local sysctl = require 'gluon.sysctl'
local sysconfig = require 'gluon.sysconfig' local sysconfig = require 'gluon.sysconfig'
@ -68,7 +67,3 @@ uci:section('firewall', 'rule', 'wan_mld', {
}) })
uci:save('firewall') uci:save('firewall')
sysctl.set('net.ipv6.conf.all.accept_ra', 0)
sysctl.set('net.ipv6.conf.default.accept_ra', 0)

View File

@ -1,5 +0,0 @@
#!/usr/bin/lua
local sysctl = require 'gluon.sysctl'
sysctl.set('vm.panic_on_oom', 1)

View File

@ -0,0 +1,2 @@
net.ipv6.conf.br-client.forwarding=0
net.ipv6.conf.local-node.forwarding=0

View File

@ -6,7 +6,6 @@
local site = require 'gluon.site' local site = require 'gluon.site'
local sysconfig = require 'gluon.sysconfig' local sysconfig = require 'gluon.sysconfig'
local sysctl = require 'gluon.sysctl'
local util = require 'gluon.util' local util = require 'gluon.util'
local uci = require('simple-uci').cursor() local uci = require('simple-uci').cursor()
@ -51,6 +50,3 @@ uci:set_list('firewall', 'drop', 'network', networks)
uci:delete('firewall', 'local_node_dns') uci:delete('firewall', 'local_node_dns')
uci:save('firewall') uci:save('firewall')
sysctl.set('net.ipv6.conf.local-node.forwarding', 0)