]>
Commit | Line | Data |
---|---|---|
852db316 JR |
1 | #! /bin/sh |
2 | # | |
3 | # chkconfig: - 60 20 | |
4 | # description: The bootparamd server allows older Sun workstations to \ | |
5 | # net boot from Linux boxes. It (along with rarp) is rarely \ | |
6 | # used anymore; bootp and dhcp have mostly replaced both of them. | |
7 | # processname: rpc.bootparamd | |
8 | # config: /etc/bootparams | |
9 | ||
10 | # Source function library. | |
11 | . /etc/rc.d/init.d/functions | |
12 | ||
13 | # Get config. | |
14 | . /etc/sysconfig/network | |
15 | ||
16 | # Check that networking is up. | |
17 | if [ ${NETWORKING} = "no" ] | |
18 | then | |
19 | exit 0 | |
20 | fi | |
21 | ||
22 | # See how we were called. | |
23 | case "$1" in | |
24 | start) | |
25 | echo -n "Starting bootparamd services: " | |
26 | daemon rpc.bootparamd | |
27 | ||
28 | echo | |
29 | touch /var/lock/subsys/bootparamd | |
30 | ;; | |
31 | stop) | |
32 | echo -n "Stopping bootparamd services: " | |
33 | killproc rpc.bootparamd | |
34 | ||
35 | echo | |
36 | rm -f /var/lock/subsys/bootparamd | |
37 | ;; | |
38 | status) | |
39 | status rpc.bootparamd | |
40 | ;; | |
41 | restart|reload) | |
42 | $0 stop | |
43 | $0 start | |
44 | ;; | |
45 | *) | |
46 | echo "Usage: bootparamd {start|stop|status|restart|reload}" | |
47 | exit 1 | |
48 | esac | |
49 | ||
50 | exit 0 |