1bef78c6df
* Add msm-fb-refresher package and initfs config * Bump version for pmos-mkinitfs * Create msm-fb-refresher openrc service * kill refresher when initfs is done
27 lines
409 B
Text
27 lines
409 B
Text
#!/sbin/openrc-run
|
|
|
|
cmd=/usr/sbin/msm-fb-refresher
|
|
cmd_args="--loop"
|
|
pid=/run/msm-fb-refresher.pid
|
|
|
|
depend() {
|
|
after bootmisc
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting msm-fb-refresher"
|
|
start-stop-daemon --start --exec $cmd --background \
|
|
--pidfile $pid --make-pidfile -- $cmd_args
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping msm-fb-refresher"
|
|
start-stop-daemon --stop --exec $cmd
|
|
eend $?
|
|
}
|
|
|
|
restart() {
|
|
stop
|
|
start
|
|
}
|