blob: e5693e911b43d8c2152b8647dc5a9e2bc61f5a13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#! /bin/sh
#
# This is an init script for openembedded
# Copy it to /etc/init.d/p910nd and type
# > update-rc.d p910nd defaults 60
#
#
test -f /usr/sbin/p910nd || exit 0
test -d /var/spool/p910nd || mkdir -p /var/spool/p910nd
case "$1" in
start)
echo -n "Starting p910nd printer daemon: p910nd"
/usr/sbin/p910nd -b -f /dev/usb/lp0 0
echo "."
;;
stop)
echo -n "Stopping p910nd printer daemon: p910nd"
start-stop-daemon --stop --quiet --exec /usr/sbin/p9100d
echo "."
;;
restart)
echo -n "Stopping p910nd printer daemon: p910nd"
start-stop-daemon --stop --quiet --exec /usr/sbin/p9100d
sleep 2
echo -n " ... Starting p910nd printer daemon: p910nd "
/usr/sbin/p910nd -b -f /dev/usb/lp0 0
echo "."
;;
*)
echo "Usage: /etc/init.d/p910nd {start|stop|restart}"
exit 1
esac
exit 0
|