summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/p910nd/files/p910nd.init
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/p910nd/files/p910nd.init')
-rwxr-xr-xmeta-oe/recipes-support/p910nd/files/p910nd.init31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/p910nd/files/p910nd.init b/meta-oe/recipes-support/p910nd/files/p910nd.init
new file mode 100755
index 0000000000..a19c09e877
--- /dev/null
+++ b/meta-oe/recipes-support/p910nd/files/p910nd.init
@@ -0,0 +1,31 @@
1#! /bin/sh
2
3test -f /usr/sbin/p910nd || exit 0
4
5test -d /var/spool/p910nd || mkdir -p /var/spool/p910nd
6
7case "$1" in
8 start)
9 echo -n "Starting p910nd printer daemon: p910nd"
10 /usr/sbin/p910nd -b -f /dev/usb/lp0 0
11 echo "."
12 ;;
13 stop)
14 echo -n "Stopping p910nd printer daemon: p910nd"
15 start-stop-daemon --stop --quiet --exec /usr/sbin/p9100d
16 echo "."
17 ;;
18 restart)
19 echo -n "Stopping p910nd printer daemon: p910nd"
20 start-stop-daemon --stop --quiet --exec /usr/sbin/p9100d
21 sleep 2
22 echo -n " ... Starting p910nd printer daemon: p910nd "
23 /usr/sbin/p910nd -b -f /dev/usb/lp0 0
24 echo "."
25 ;;
26 *)
27 echo "Usage: /etc/init.d/p910nd {start|stop|restart}"
28 exit 1
29esac
30
31exit 0