#20993: Installing kmod-bluetooth fails in postinst script
-----------------------------+---------------------------------------
Reporter: davidacampbell | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Designated Driver (Trunk)
Component: kernel | Version: Trunk
Resolution: | Keywords:
-----------------------------+---------------------------------------
Comment (by jim@…):
This error seems to occur because `/usr/lib/opkg/info/kmod-bluetooth
.postinst-pkg` contains:
{{{
insert_modules bluetooth rfcomm bnep hidp hci_uart btusb
}}}
However, `/etc/modules.d/bluetooth` already lists all of them, so they get
installed when `insert-modules` sees the first entry. When `insert-
modules` calls `modprobe` for the other 5, they all return an error. Thus
the `postinst-pkg` script returns the same error and `opkg` bails out.
Workaround/fix:
{{{
cd /usr/lib/opkg/info
sed 's/rfcomm/#rfcomm/g' < kmod-bluetooth.postinst-pkg > /tmp/foo
mv /tmp/foo kmod-bluetooth.postinst-pkg
opkg configure kmod-bluetooth
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20993#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets