Remove *_fill_nic() calls, and directly set nic->ioaddr and nic->irqno .
[gpxe.git] / contrib / p910nd-0.8 / p910nd.sh
blob291a836a2f2c8b4db5c10ca5667b95f4994e138e
1 #!/bin/sh
3 # p910nd.sh This shell script takes care of starting and stopping
4 # p910nd (port 9100+n printer daemon)
5 # This script only controls the one on port 9101.
6 # You can start others if you wish.
9 # Todo: Make it fully LSB
11 # See how we were called.
12 case "$1" in
13 start)
14 # Start daemons.
15 echo -n "Starting p910nd: "
16 # default port is 1 so it will appear as p9101d on a ps
17 start_daemon p910nd
18 echo
20 stop)
21 # Stop daemons.
22 echo -n "Shutting down p910nd: "
23 killproc p9101d
24 echo
25 rm -f /var/run/p9101.pid
27 status)
28 status p9101d
30 restart)
31 $0 stop
32 $0 start
35 echo "Usage: p910nd {start|stop|restart|status}"
36 exit 1
37 esac
39 exit 0