diff --git a/packages/sysutils/imx6-status-led/package.mk b/packages/sysutils/imx6-status-led/package.mk deleted file mode 100644 index 66c573b043..0000000000 --- a/packages/sysutils/imx6-status-led/package.mk +++ /dev/null @@ -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 . -################################################################################ - -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 -} diff --git a/packages/sysutils/imx6-status-led/scripts/imx6-status-led b/packages/sysutils/imx6-status-led/scripts/imx6-status-led deleted file mode 100755 index d3ef9e05b0..0000000000 --- a/packages/sysutils/imx6-status-led/scripts/imx6-status-led +++ /dev/null @@ -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 . -################################################################################ - -. /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" - diff --git a/packages/sysutils/imx6-status-led/scripts/imx6-system-type b/packages/sysutils/imx6-status-led/scripts/imx6-system-type deleted file mode 100755 index 988c741790..0000000000 --- a/packages/sysutils/imx6-status-led/scripts/imx6-system-type +++ /dev/null @@ -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 . -################################################################################ - -# $ 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 diff --git a/packages/sysutils/imx6-status-led/system.d/imx6-status-led.service b/packages/sysutils/imx6-status-led/system.d/imx6-status-led.service deleted file mode 100644 index 464739f665..0000000000 --- a/packages/sysutils/imx6-status-led/system.d/imx6-status-led.service +++ /dev/null @@ -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