Skip to content
Snippets Groups Projects
Commit 65c7db78 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

Convert more upgrade scripts to the new sysctl helper

parent 3e7e4b43
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,3 @@ tl-wdr4300) # fix up duplicate mac addresses ...@@ -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
#!/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
...@@ -16,5 +16,3 @@ fi ...@@ -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
...@@ -2,6 +2,7 @@ ...@@ -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 ...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment