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

gluon-core: convert network config script to lua

parent 0fd7ac17
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
#!/usr/bin/lua
. /lib/functions.sh
. /lib/gluon/functions/sysctl.sh
local uci = require('luci.model.uci').cursor()
local sysctl = require 'gluon.sysctl'
uci_set network wan peerdns '0'
uci_commit network
uci:set('network', 'wan', 'peerdns', '0')
sysctl_set net.ipv6.conf.all.accept_ra 0
sysctl_set net.ipv6.conf.default.accept_ra 0
uci:save('network')
uci:commit('network')
sysctl.set('net.ipv6.conf.all.accept_ra', 0)
sysctl.set('net.ipv6.conf.default.accept_ra', 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