Magellan Linux

Diff of /trunk/usbip/usbipd.rc

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

revision 1535 by niro, Mon Sep 19 16:32:12 2011 UTC revision 1536 by niro, Mon Sep 19 17:51:28 2011 UTC
# Line 13  Line 13 
13  source /etc/conf.d/rc  source /etc/conf.d/rc
14  source $rc_functions  source $rc_functions
15    
16    # usbip >= 0.1.8
17    if [[ -x /usr/sbin/usbipd ]]
18    then
19     DAEMON=/usr/sbin/usbipd
20    else
21     DAEMON=/usr/bin/usbipd
22    fi
23    
24  case "$1" in  case "$1" in
25   start)   start)
26   if [[ -z $(grep '^usbip[-_]host' /proc/modules) ]]   if [[ -z $(grep '^usbip[-_]host' /proc/modules) ]]
# Line 20  case "$1" in Line 28  case "$1" in
28   modprobe usbip-host &> /dev/null   modprobe usbip-host &> /dev/null
29   fi   fi
30   rc_print "Starting USB over TCP/IP Enumerator daemon ..."   rc_print "Starting USB over TCP/IP Enumerator daemon ..."
31   start-stop-daemon --start --quiet --background --exec /usr/bin/usbipd --pidfile /var/run/usbipd.pid --make-pidfile -- -D   start-stop-daemon --start --quiet --background --exec ${DAEMON} --pidfile /var/run/usbipd.pid --make-pidfile -- -D
32   evaluate_retval   evaluate_retval
33    
34   update_svcstatus $1   update_svcstatus $1
# Line 47  case "$1" in Line 55  case "$1" in
55   ;;   ;;
56    
57   status)   status)
58   statusproc /usr/bin/usbipd   statusproc ${DAEMON}
59   ;;   ;;
60    
61   *)   *)

Legend:
Removed from v.1535  
changed lines
  Added in v.1536