imx6-status-led: remove package

This commit is contained in:
Lukas Rusak 2017-11-11 09:11:47 -08:00
parent 653f4c3fa8
commit bf40ac3d77
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3
4 changed files with 0 additions and 146 deletions

View File

@ -1,42 +0,0 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="imx6-status-led"
PKG_VERSION="1.0"
PKG_ARCH="arm"
PKG_LICENSE="GPL"
PKG_SITE="http://www.openelec.tv/"
PKG_URL=""
PKG_DEPENDS_TARGET=""
PKG_SECTION="system"
PKG_SHORTDESC="i.MX6 status LED control"
PKG_LONGDESC="Front status LED control for i.MX6 systems"
PKG_AUTORECONF="no"
make_target() {
: # nothing
}
makeinstall_target() {
mkdir -p $INSTALL/usr/lib/libreelec
cp $PKG_DIR/scripts/* $INSTALL/usr/lib/libreelec
}
post_install() {
enable_service imx6-status-led.service
}

View File

@ -1,48 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2015 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
. /usr/lib/libreelec/imx6-system-type
case "$1" in
"on")
TRIGGER=default-on
;;
"heartbeat")
TRIGGER=heartbeat
;;
*)
exit 0
;;
esac
case "$SYSTEM_TYPE" in
"matrix")
LED="/sys/class/leds/red/trigger"
;;
"cuboxi")
LED="/sys/class/leds/imx6:red:front/trigger"
;;
*)
exit 0
;;
esac
echo "$TRIGGER" > "$LED"

View File

@ -1,44 +0,0 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2015 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
# $ cat /sys/devices/soc0/machine
# Freescale i.MX6 Quad SABRE Smart Device Board
# $ cat /sys/devices/soc0/machine
# TBS Matrix
# $ cat /sys/devices/soc0/family
# Freescale i.MX
# $ cat /sys/devices/soc0/soc_id
# i.MX6Q
# $ cat /sys/devices/soc0/revision
# 1.2
SYSTEM_TYPE=$(cat /sys/bus/soc/devices/soc0/machine)
case "$SYSTEM_TYPE" in
"TBS Matrix")
export SYSTEM_TYPE="matrix"
;;
"SolidRun Cubox-i Dual/Quad"|"SolidRun Cubox-i Solo/DualLite")
export SYSTEM_TYPE="cuboxi"
;;
"Udoo i.MX6 Dual-lite Board"|"Udoo i.MX6 Quad Board")
export SYSTEM_TYPE="udoo"
;;
*)
export SYSTEM_TYPE="undef"
;;
esac

View File

@ -1,12 +0,0 @@
[Unit]
Description=i.MX6 status led
After=kodi.service
[Service]
Type=oneshot
ExecStart=-/bin/sh -c "/usr/lib/libreelec/imx6-status-led on"
ExecStop=-/bin/sh -c "/usr/lib/libreelec/imx6-status-led heartbeat"
RemainAfterExit=yes
[Install]
WantedBy=kodi.target