mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 11:05:54 +02:00
47 lines
658 B
Bash
47 lines
658 B
Bash
#!/bin/sh
|
|
# Begin $rc_base/init.d/lcd4linux
|
|
|
|
|
|
. /etc/sysconfig/rc
|
|
. $rc_functions
|
|
|
|
case "$1" in
|
|
start)
|
|
boot_mesg "Starting lcd4linux..."
|
|
if [ ! -f /etc/lcd4linux.conf ]; then
|
|
boot_mesg "No configuration file found, not starting."
|
|
exit 1
|
|
fi
|
|
|
|
loadproc /usr/bin/lcd4linux
|
|
;;
|
|
|
|
stop)
|
|
boot_mesg "Stopping lcd4linux..."
|
|
killproc /usr/bin/lcd4linux
|
|
;;
|
|
|
|
reload)
|
|
boot_mesg "Reloading lcd4linux..."
|
|
reloadproc /usr/bin/lcd4linux
|
|
;;
|
|
|
|
restart)
|
|
$0 stop
|
|
sleep 3
|
|
$0 start
|
|
;;
|
|
|
|
status)
|
|
statusproc /usr/bin/lcd4linux
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: $0 {start|stop|reload|restart|status}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
|
|
# End $rc_base/init.d/lcd4linux
|