2023-05-22 22:08:29 +08:00

18 lines
297 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=60
start() {
WX=$(uci -q get custom.bwallocate.lock)
if [ "$WX" = "1" ]; then
uci set bwmon.general.enabled=1
uci commit bwmon
fi
/usr/lib/bwmon/wrtbwmon.sh &
/usr/lib/bwmon/create.sh &
}
stop() {
rmdir -f /tmp/WRTbmon
}