odroid-u2-base: add sv for odroid-led.

This commit is contained in:
Eivind Uggedal 2015-01-09 09:17:14 +00:00
parent 0fe18cf339
commit c4b4fed4a4
3 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
usage() {
cat >&2 <<EOF

View File

@ -0,0 +1,4 @@
#!/bin/sh
set -e
odroid-led
exec chpst -b odroid-led pause

View File

@ -1,7 +1,7 @@
# Template file for 'odroid-u2-base'
pkgname=odroid-u2-base
version=2.0
revision=1
revision=2
build_style=meta
homepage="http://www.voidlinux.eu"
short_desc="Void Linux Odroid U2 platform package"
@ -12,6 +12,7 @@ only_for_archs="armv7l"
depends="virtual?ntp-daemon odroid-u2-kernel odroid-u2-uboot odroid-u2-boot-fw"
conf_files=/etc/default/odroid-led
build_options="systemd"
do_install() {
# Set proper perms to some devices.
@ -19,7 +20,10 @@ do_install() {
echo 'KERNEL=="disp|cedar_dev|mali|ump", MODE="0660", GROUP="video"' > ${DESTDIR}/usr/lib/udev/rules.d/50-odroid-u2.rules
# Install LED utilities
vinstall ${FILESDIR}/odroid-led 744 /usr/sbin
vinstall ${FILESDIR}/odroid-led.sh 744 /usr/sbin odroid-led
vinstall ${FILESDIR}/odroid-led.default 744 /etc/default odroid-led
vinstall ${FILESDIR}/odroid-led.service 644 /usr/lib/systemd/system
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/odroid-led.service 644 /usr/lib/systemd/system
fi
vsv odroid-led
}