]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/lcd4linux
Updated lcd4linux pack with backup and init files
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / lcd4linux
1 #!/bin/sh
2 # Begin $rc_base/init.d/lcd4linux
3
4
5 . /etc/sysconfig/rc
6 . $rc_functions
7
8 case "$1" in
9 start)
10 boot_mesg "Starting lcd4linux..."
11 if [ ! -f /etc/lcd4linux.conf ]; then
12 boot_mesg "No configuration file found, not starting."
13 exit 1
14 fi
15
16 loadproc /usr/bin/lcd4linux
17 ;;
18
19 stop)
20 boot_mesg "Stopping lcd4linux..."
21 killproc /usr/bin/lcd4linux
22 ;;
23
24 reload)
25 boot_mesg "Reloading smbd..."
26 reloadproc /usr/sbin/smbd
27
28 boot_mesg "Reloading nmbd..."
29 reloadproc /usr/sbin/nmbd
30 ;;
31
32 restart)
33 $0 stop
34 sleep 3
35 $0 start
36 ;;
37
38 status)
39 statusproc /usr/bin/lcd4linux
40 ;;
41
42 *)
43 echo "Usage: $0 {start|stop|reload|restart|status}"
44 exit 1
45 ;;
46 esac
47
48
49 # End $rc_base/init.d/lcd4linux