op-packages/luci-app-cpulimit/root/etc/init.d/cpulimit
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

17 lines
223 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
. /lib/functions.sh
START=50
DEFAULT=/etc/default/cpulimit
start() {
/usr/bin/cpulimit.sh start &
}
stop() {
kill -9 `pidof cpulimit | sed "s/$$//g"`
}