New package: usbarmory-base-1.0
This commit is contained in:
parent
800bdb04d5
commit
f56a0a77ab
|
@ -0,0 +1,9 @@
|
|||
case "$ACTION" in
|
||||
post)
|
||||
# enable sshd, ntpdate, ntpd and dhcpcd services.
|
||||
mkdir -p etc/runit/runsvdir/default/
|
||||
ln -sf /etc/sv/sshd etc/runit/runsvdir/default/
|
||||
ln -sf /etc/sv/ntpd etc/runit/runsvdir/default/
|
||||
ln -sf /etc/sv/dhcpcd-usb0 etc/runit/runsvdir/default/
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,5 @@
|
|||
# Static IP configuration.
|
||||
interface usb0
|
||||
static ip_address=10.0.0.1
|
||||
static routers=10.0.0.2
|
||||
static domain_name_servers=8.8.8.8 8.8.4.4
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
[ -r conf ] && . ./conf
|
||||
exec dhcpcd ${OPTS:=-f /etc/dhcpcd-usb0.conf} 1>&2
|
|
@ -0,0 +1,26 @@
|
|||
# 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
|
||||
}
|
Loading…
Reference in New Issue