Hallo olistudent,
Habe mal ein paar Szenarien durchprobiert.
1) mit "/etc/init.d/rc.usbip stop" den Daemon gestoppt.
Festplatten ausgeschaltet, nur einen 4x USB Hub angeschlossen:
Daemon mit "sh -x /etc/init.d/rc.usbip start" gestartet.
Ausgabe
Code:
+ DAEMON=usbip
+ DAEMON_LONG_NAME=USB-IP
+ DAEMON_BIN=usbipd
+ . /etc/init.d/modlibrc
+ export PATH=/mod/sbin:/mod/bin:/mod/usr/sbin:/mod/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ export LD_LIBRARY_PATH=/mod/lib:/mod/usr/lib
+ : USB-IP
+ : usbip
+ : usbip_ENABLED
+ : /mod/etc/usbip.conf
+ : usbipd
+ : /var/run/usbipd.pid
+ [ -n usbip ]
+ modlib_loadconfig
+ local CONF_FILE=/mod/etc/conf/usbip.cfg
+ [ ! -r /mod/etc/conf/usbip.cfg ]
+ . /mod/etc/conf/usbip.cfg
+ export USBIP_ALL=no
+ export USBIP_CUSTOM=
+ export USBIP_ENABLED=yes
+ export USBIP_HUBS=no
+ export USBIP_STORAGES=yes
+ modlib_start
+ local DAEMON_ENABLED=
+ [ == no ]
+ [ == inetd -a ! -x /etc/init.d/rc.inetd ]
+ modlib_check_running
+ [ -n ]
+ [ -x /etc/init.d/rc.inetd ]
+ echo usbip_ENABLED
+ tr [:lower:]- [:upper:]_
+ eval echo $USBIP_ENABLED
+ echo yes
+ [ yes == inetd ]
+ [ -n ]
+ local fn=/var/run/usbipd.pid
+ [ ! -s /var/run/usbipd.pid ]
+ return 3
+ start
+ modlib_startdaemon usbipd -D
Starting USB-IP ... done.
+ share
+ local USBIP_BUSID=
+ [ no == yes ]
+ [ yes == yes ]
+ sed -n s/^ *\([0-9\.-]*\)\:.* usb-storage$/\1/p
+ bind_driver --list
+ USBIP_BUSID=
+ [ no == yes ]
+ grep -vE ^ *#|^ *;|^ *$
+ echo
+ local USBIP_CUSTOM_CLEANED=
+ sed s/ */\n/g
+ echo
+ sort -u
+ local USBIP_BUSID=
+ return 0
+ exit 0
2) mit "/etc/init.d/rc.usbip stop" den Daemon gestoppt.
Zwei Festplatten am 4x USB Hub eingeschaltet:
Daemon mit "sh -x /etc/init.d/rc.usbip start" gestartet.
Ausgabe
Code:
+ DAEMON=usbip
+ DAEMON_LONG_NAME=USB-IP
+ DAEMON_BIN=usbipd
+ . /etc/init.d/modlibrc
+ export PATH=/mod/sbin:/mod/bin:/mod/usr/sbin:/mod/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ export LD_LIBRARY_PATH=/mod/lib:/mod/usr/lib
+ : USB-IP
+ : usbip
+ : usbip_ENABLED
+ : /mod/etc/usbip.conf
+ : usbipd
+ : /var/run/usbipd.pid
+ [ -n usbip ]
+ modlib_loadconfig
+ local CONF_FILE=/mod/etc/conf/usbip.cfg
+ [ ! -r /mod/etc/conf/usbip.cfg ]
+ . /mod/etc/conf/usbip.cfg
+ export USBIP_ALL=no
+ export USBIP_CUSTOM=
+ export USBIP_ENABLED=yes
+ export USBIP_HUBS=no
+ export USBIP_STORAGES=yes
+ modlib_start
+ local DAEMON_ENABLED=
+ [ == no ]
+ [ == inetd -a ! -x /etc/init.d/rc.inetd ]
+ modlib_check_running
+ [ -n ]
+ [ -x /etc/init.d/rc.inetd ]
+ tr [:lower:]- [:upper:]_
+ echo usbip_ENABLED
+ eval echo $USBIP_ENABLED
+ echo yes
+ [ yes == inetd ]
+ [ -n ]
+ local fn=/var/run/usbipd.pid
+ [ ! -s /var/run/usbipd.pid ]
+ return 3
+ start
+ modlib_startdaemon usbipd -D
Starting USB-IP ... done.
+ share
+ local USBIP_BUSID=
+ [ no == yes ]
+ [ yes == yes ]
+ sed -n s/^ *\([0-9\.-]*\)\:.* usb-storage$/\1/p
+ bind_driver --list
+ USBIP_BUSID= 1-1.2
1-1.3
+ [ no == yes ]
+ echo
+ grep -vE ^ *#|^ *;|^ *$
+ local USBIP_CUSTOM_CLEANED=
+ sort -u
+ sed s/ */\n/g
+ echo 1-1.2 1-1.3
+ local USBIP_BUSID=
1-1.2
1-1.3
+ bind_driver --usbip 1-1.2
+ bind_driver --usbip 1-1.3
+ return 0
+ exit 0
Kannst du damit etwas anfangen? Der Normalfall, Daemon läuft und Festplatten werden dann angeschlossen/eingeschaltet ist damit ja aber nicht abgedeckt. Schalte ich die Platten ein, nachdem ich den Daemon gestartet habe, meldet das UI
Code:
- busid 1-1 (1a40:0101)
1-1:1.0 -> hub
- busid 1-1.3 (0000:0000)
1-1.3:1.0 -> usb-storage
- busid 1-1.2 (067b:3507)
1-1.2:1.0 -> usb-storage
Anders herum, erst Platten an, dann Daemon an, steht anstelle "usb-storage" "usbip" im UI-Fenster.
Lass' mich wissen, wenn ich weitere Informationen liefern soll.
Viele Grüße
Stefan