e-tobi/Debian runvdr patch for USB modules
Commit Message
Hi,
Here is a patch that loads/unloads USB modules in the runvdr script
found in e-tobi and probably Debian packages.
It works since 1 month here, with the Nova-TD-500 PCI card (with onboard
USB), which uses dvb_usb and dvb_usb_dib0700.
Happy new year to everyone ;-)
@@ -13,6 +13,9 @@
{
MODULES=`lsmod | awk '/^dvb_core/ {gsub(/,/,"\n", $4); print $4}' | tac`
[ "$MODULES" ] && MODULES="$MODULES dvb_core"
+ # 20091205/NH : get USB modules names too
+ USBMODULES=`lsmod | awk '/^dvb_usb / {gsub(/,/,"\n", $4); print $4}' | tac`
+ [ "$USBMODULES" ] && MODULES="$USBMODULES $MODULES"
}
# TODO: check if udev handles this on newer systems!?