This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
openwrt-packages-dist
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
nft-qos: fix monitor doesn't work when firstboot
Signed-off-by: Rosy Song <rosysong@rosinson.com>
lilik-openwrt-22.03
Rosy Song
6 years ago
parent
5bae7c73a7
commit
6a42b7bf38
2 changed files
with
11 additions
and
3 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
net/nft-qos/Makefile
+10
-2
net/nft-qos/files/nft-qos-monitor.hotplug
+ 1
- 1
net/nft-qos/Makefile
View File
@ -8,7 +8,7 @@
i
n
c
l
u
d
e
$(
TOPDIR
)
/
r
u
l
e
s
.
m
k
i
n
c
l
u
d
e
$(
TOPDIR
)
/
r
u
l
e
s
.
m
k
PKG_NAME
:=
nft-qos
PKG_NAME
:=
nft-qos
PKG_VERSION
:=
1.0.
2
PKG_VERSION
:=
1.0.
3
PKG_RELEASE
:=
1
PKG_RELEASE
:=
1
PKG_LICENSE
:=
GPL-2.0
PKG_LICENSE
:=
GPL-2.0
+ 10
- 2
net/nft-qos/files/nft-qos-monitor.hotplug
View File
@ -8,6 +8,14 @@
logger -t nft-qos-monitor "ACTION=$ACTION, MACADDR=$MACADDR, IPADDR=$IPADDR, HOSTNAME=$HOSTNAME"
logger -t nft-qos-monitor "ACTION=$ACTION, MACADDR=$MACADDR, IPADDR=$IPADDR, HOSTNAME=$HOSTNAME"
case "$ACTION" in
case "$ACTION" in
add | update) qosdef_init_env && qosdef_monitor_add $MACADDR $IPADDR $HOSTNAME;;
remove) qosdef_init_env && qosdef_monitor_del $MACADDR $IPADDR $HOSTNAME;;
add | update)
qosdef_init_env
qosdef_init_monitor
qosdef_monitor_add $MACADDR $IPADDR $HOSTNAME
;;
remove)
qosdef_init_env
qosdef_init_monitor
qosdef_monitor_del $MACADDR $IPADDR $HOSTNAME
;;
esac
esac
Write
Preview
Loading…
Cancel
Save