void-packages/srcpkgs/usbarmory-base/template

25 lines
776 B
Bash

# Template file for 'usbarmory-base'
pkgname=usbarmory-base
version=1.0
revision=1
homepage="http://www.voidlinux.eu"
short_desc="Void Linux USBarmory base files"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="Public Domain"
only_for_archs="armv7l armv7l-musl"
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
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
vconf ${FILESDIR}/dhcpcd-usb0.conf
vsv dhcpcd-usb0
}