void-packages/srcpkgs/usbarmory-base/template

27 lines
760 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
for m in ledtrig_heartbeat ci_hdrc_imx; 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
}