usbarmory-base: move options to modprobe.d
This commit is contained in:
parent
23726bc913
commit
ff548f0e72
|
@ -13,13 +13,11 @@ depends="virtual?ntp-daemon usbarmory-u-boot usbarmory-kernel"
|
|||
do_install() {
|
||||
# load LED, CI HDRC i.MX USB binding, and g_ether driver
|
||||
vmkdir usr/lib/modules-load.d
|
||||
for m in ledtrig_heartbeat ci_hdrc_imx; do
|
||||
vmkdir usr/lib/modprobe.d
|
||||
echo 'options g_ether use_eem=0 dev_addr=1a:55:89:a2:69:41 host_addr=1a:55:89:a2:69:42' > ${DESTDIR}/usr/lib/modprobe.d/g_ether.conf
|
||||
for m in ledtrig_heartbeat ci_hdrc_imx g_ether; do
|
||||
echo "$m" > ${DESTDIR}/usr/lib/modules-load.d/${m%% *}.conf
|
||||
done
|
||||
cat > ${DESTDIR}/usr/lib/modules-load.d/g_ether.conf <<EOF
|
||||
options g_ether use_eem=0 dev_addr=1a:55:89:a2:69:41 host_addr=1a:55:89:a2:69:42
|
||||
g_ether
|
||||
EOF
|
||||
|
||||
vinstall ${FILESDIR}/dhcpcd-usb0.conf 644 /etc
|
||||
vsv dhcpcd-usb0
|
||||
|
|
Loading…
Reference in New Issue