Magellan Linux

Diff of /trunk/usbip/usbipd.rc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1528 by niro, Mon Sep 19 15:56:15 2011 UTC revision 1534 by niro, Mon Sep 19 16:28:14 2011 UTC
# Line 2  Line 2 
2  # $Id$  # $Id$
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: 80
6  #%stop: 20  #%stop: 20
7    
8  #deps  #deps
# Line 15  source $rc_functions Line 15  source $rc_functions
15    
16  case "$1" in  case "$1" in
17   start)   start)
18     if [[ -z $(grep '^usbip[-_]host' /proc/modules) ]]
19     then
20     modprobe usbip-host &> /dev/null
21     fi
22   rc_print "Starting USB over TCP/IP Enumerator daemon ..."   rc_print "Starting USB over TCP/IP Enumerator daemon ..."
23   start-stop-daemon --start --exec /usr/bin/usbipd --pidfile /var/run/usbipd.pid --make-pidfile -- -D   start-stop-daemon --start --quiet --exec /usr/bin/usbipd --pidfile /var/run/usbipd.pid --make-pidfile -- -D
24   evaluate_retval   evaluate_retval
25    
26   update_svcstatus $1   update_svcstatus $1
# Line 25  case "$1" in Line 29  case "$1" in
29    
30   stop)   stop)
31   rc_print "Stopping USB over TCP/IP Enumerator  daemon ..."   rc_print "Stopping USB over TCP/IP Enumerator  daemon ..."
32   start-stop-daemon --stop --pidfile /var/run/usbipd.pid   start-stop-daemon --stop --quiet --pidfile /var/run/usbipd.pid
33   if [[ ! -z $(pidof usbipd) ]]   if [[ ! -z $(pidof usbipd) ]]
34   then   then
35   killall usbipd   killall usbipd &> /dev/null
36   fi   fi
37   evaluate_retval   evaluate_retval
38    

Legend:
Removed from v.1528  
changed lines
  Added in v.1534