25 lines
757 B
Bash
25 lines
757 B
Bash
# Template file for 'usbarmory-base'
|
|
pkgname=usbarmory-base
|
|
version=1.0
|
|
revision=2
|
|
short_desc="Void Linux USBarmory base files"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="Public Domain"
|
|
homepage="http://www.voidlinux.eu"
|
|
|
|
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
|
|
echo "$m" > ${DESTDIR}/usr/lib/modules-load.d/${m%% *}.conf
|
|
done
|
|
|
|
vconf ${FILESDIR}/dhcpcd-usb0.conf
|
|
vsv dhcpcd-usb0
|
|
}
|