1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /root/magellan-cvs/src/usbip/usbipdevd.rc,v 1.1 2007-05-08 07:28:12 niro Exp $ |
# $Header: /root/magellan-cvs/src/usbip/usbipdevd.rc,v 1.3 2007-05-09 15:06:06 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k |
#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k |
5 |
#%start: 90 |
#%start: 90 |
13 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
14 |
source $rc_functions |
source $rc_functions |
15 |
|
|
16 |
exec=/root/usbipdevd |
exec=/usr/sbin/usbipdevd |
17 |
|
|
18 |
case "$1" in |
case "$1" in |
19 |
start) |
start) |
28 |
;; |
;; |
29 |
|
|
30 |
stop) |
stop) |
31 |
echo -e ${COLOREDSTAR}"Stopping Network USB daemon ..." |
echo -e ${COLOREDSTAR}"Stopping usbip-device daemon ..." |
32 |
start-stop-daemon --quiet --stop \ |
start-stop-daemon --quiet --stop \ |
33 |
--pidfile /var/run/usbipdevd.pid |
--pidfile /var/run/usbipdevd.pid |
34 |
evaluate_retval |
evaluate_retval |