mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
netifd: add missing do_sysctl function
SVN-Revision: 30749
This commit is contained in:
parent
fe090bcf53
commit
4814eb5df9
@ -57,3 +57,8 @@ setup_interface() {
|
|||||||
ubus call network.interface."$config" add_device "{ \"name\": \"$iface\" }"
|
ubus call network.interface."$config" add_device "{ \"name\": \"$iface\" }"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_sysctl() {
|
||||||
|
[ -n "$2" ] && \
|
||||||
|
sysctl -n -e -w "$1=$2" >/dev/null || \
|
||||||
|
sysctl -n -e "$1"
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user