mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
24 lines
311 B
Bash
Executable File
24 lines
311 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=98
|
|
|
|
SERVICE_WRITE_PID=1
|
|
SERVICE_DAEMONIZE=1
|
|
|
|
start() {
|
|
. /lib/functions.sh
|
|
|
|
local enabled
|
|
|
|
config_load 'thermal'
|
|
config_get_bool enabled config 'Enabled' '0'
|
|
|
|
[ "$enabled" -gt 0 ] || return 1
|
|
|
|
service_start /usr/sbin/thermald
|
|
}
|
|
|
|
stop() {
|
|
service_stop /usr/sbin/thermald
|
|
}
|