void-packages/srcpkgs/usbarmory-base/template

25 lines
776 B
Bash
Raw Normal View History

2015-04-28 17:15:59 +02:00
# 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"
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
2015-04-28 17:15:59 +02:00
echo "$m" > ${DESTDIR}/usr/lib/modules-load.d/${m%% *}.conf
done
vinstall ${FILESDIR}/dhcpcd-usb0.conf 644 /etc
vsv dhcpcd-usb0
}