Convert more upgrade scripts to the new sysctl helper

This commit is contained in:
Matthias Schiffer 2014-02-21 19:58:38 +01:00
parent 3e7e4b43af
commit 65c7db78fd
4 changed files with 8 additions and 5 deletions

View File

@ -30,6 +30,3 @@ tl-wdr4300) # fix up duplicate mac addresses
esac esac
uci_commit network uci_commit network
echo 'net.ipv6.conf.all.accept_ra=0' >> /etc/sysctl.conf
echo 'net.ipv6.conf.default.accept_ra=0' >> /etc/sysctl.conf

View File

@ -1,7 +1,11 @@
#!/bin/sh #!/bin/sh
. /lib/functions.sh . /lib/functions.sh
. /lib/gluon/functions/sysctl.sh
uci_set network wan peerdns '0' uci_set network wan peerdns '0'
uci_commit network uci_commit network
sysctl_set net.ipv6.conf.all.accept_ra 0
sysctl_set net.ipv6.conf.default.accept_ra 0

View File

@ -16,5 +16,3 @@ fi
uci_set network client type 'bridge' uci_set network client type 'bridge'
uci_set network client proto 'dhcpv6' uci_set network client proto 'dhcpv6'
uci_set network client reqprefix 'no' uci_set network client reqprefix 'no'
echo 'net.ipv6.conf.br-client.forwarding=0' >> /etc/sysctl.conf

View File

@ -2,6 +2,7 @@
. /lib/functions.sh . /lib/functions.sh
. /lib/gluon/functions/sysconfig.sh . /lib/gluon/functions/sysconfig.sh
. /lib/gluon/functions/sysctl.sh
uci_remove batman-adv bat0 uci_remove batman-adv bat0
@ -46,3 +47,6 @@ uci_add dhcp dhcp client
uci_set dhcp client interface 'client' uci_set dhcp client interface 'client'
uci_set dhcp client ignore '1' uci_set dhcp client ignore '1'
uci_commit dhcp uci_commit dhcp
sysctl_set net.ipv6.conf.br-client.forwarding 0