/usr/share/tcos/hooks-addons/19usbip is in initramfs-tools-tcos 0.89.93ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | # hooks addon to export USB devices with USB/IP
# need usbip-tools and modules
if [ $TCOS_USBIP ] && [ -x /usr/sbin/usbip ]; then
stat_before
cpifexists /usr/sbin/usbip /usr/sbin
cpifexists /usr/sbin/usbipd /usr/sbin
cpifexists /usr/sbin/usbip_bind_driver /usr/sbin
cpifexists /usr/lib/libusbip.so.0 /usr/lib
cpifexists /usr/bin/lsusb /usr/bin
mkdir -p $DESTDIR/usr/share/misc
[ -e /usr/share/misc/usb.ids ] && \
cpifexists /usr/share/misc/usb.ids /usr/share/misc
manual_add_modules usbip_common_mod
manual_add_modules usbip
manual_add_modules vhci-hcd
cat << EOF > $DESTDIR/scripts/tcos-bottom/70usbip
#!/bin/sh
#
# new header not using prereqs
if [ "\$1" = "prereqs" ]; then
echo ""
exit 0
fi
quiet=n
. /scripts/functions
. /conf/tcos.conf
. /conf/tcos-run-functions
log_begin_msg "Starting USB/IP"
mkdir -p /usr/share/usbip
mkdir -p /usr/share/hwdata
mkdir -p /var/lib/usbutils
ln -s /usr/share/misc/usb.ids /usr/share/usbip 2>/dev/null
ln -s /usr/share/usbip/usb.ids /usr/share/hwdata 2>/dev/null
ln -s /usr/share/usbip/usb.ids /var/lib/usbutils 2>/dev/null
modprobe usbip_common_mod
modprobe usbip
usbipd -D > /var/log/usbipd.log 2>&1
log_end_msg \$?
exit 0
EOF
chmod +x $DESTDIR/scripts/tcos-bottom/70usbip
stat_after "** EXPERIMENTAL ** USB/IP support"
fi
|