mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
netifd: add missing do_sysctl function
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30749 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f9a7a43e55
commit
9c7f658df3
@ -57,3 +57,8 @@ setup_interface() {
|
||||
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