mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
busybox: remove vfd-clock as superseded with tm16xx support
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
This commit is contained in:
parent
7bb91b01e8
commit
3c14169447
@ -120,7 +120,6 @@ makeinstall_target() {
|
|||||||
sed -e "s/@DISTRONAME@-@OS_VERSION@/${DISTRONAME}-${OS_VERSION}/g" \
|
sed -e "s/@DISTRONAME@-@OS_VERSION@/${DISTRONAME}-${OS_VERSION}/g" \
|
||||||
-i ${INSTALL}/usr/bin/pastebinit
|
-i ${INSTALL}/usr/bin/pastebinit
|
||||||
ln -sf pastebinit ${INSTALL}/usr/bin/paste
|
ln -sf pastebinit ${INSTALL}/usr/bin/paste
|
||||||
cp ${PKG_DIR}/scripts/vfd-clock ${INSTALL}/usr/bin/
|
|
||||||
|
|
||||||
mkdir -p ${INSTALL}/usr/sbin
|
mkdir -p ${INSTALL}/usr/sbin
|
||||||
cp ${PKG_DIR}/scripts/kernel-overlays-setup ${INSTALL}/usr/sbin
|
cp ${PKG_DIR}/scripts/kernel-overlays-setup ${INSTALL}/usr/sbin
|
||||||
@ -167,7 +166,6 @@ post_install() {
|
|||||||
enable_service ledfix.service
|
enable_service ledfix.service
|
||||||
enable_service shell.service
|
enable_service shell.service
|
||||||
enable_service show-version.service
|
enable_service show-version.service
|
||||||
enable_service vfd-clock.service
|
|
||||||
enable_service var.mount
|
enable_service var.mount
|
||||||
enable_service locale.service
|
enable_service locale.service
|
||||||
|
|
||||||
|
@ -1,45 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# SPDX-License-Identifier: GPL-2.0
|
|
||||||
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
|
|
||||||
|
|
||||||
do_start() {
|
|
||||||
while sleep 1; do
|
|
||||||
printf "%4s" "$(date +'%l %M' | tr -d '[:space:]')" >"$LED_PATH_TEXT"
|
|
||||||
if [ "$LED_COLON" = "off" ]; then
|
|
||||||
echo "1" >"$LED_PATH_COLON"
|
|
||||||
LED_COLON="on"
|
|
||||||
else
|
|
||||||
echo "0" >"$LED_PATH_COLON"
|
|
||||||
LED_COLON="off"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
do_stop() {
|
|
||||||
echo "0" >"$LED_PATH_COLON"
|
|
||||||
echo " " >"$LED_PATH_TEXT"
|
|
||||||
}
|
|
||||||
|
|
||||||
case $(dtname) in
|
|
||||||
oranth,tx3-mini | oranth,tx9-pro | sunvell,t95z-plus)
|
|
||||||
LED_PATH_COLON="/sys/devices/platform/spi/spi_master/spi0/spi0.0/leds/:colon/brightness"
|
|
||||||
LED_PATH_TEXT="/sys/devices/platform/spi/spi_master/spi0/spi0.0/display_text"
|
|
||||||
;;
|
|
||||||
default | *)
|
|
||||||
# noop
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -n "$LED_PATH_COLON" ] && [ -n "$LED_PATH_TEXT" ]; then
|
|
||||||
case $1 in
|
|
||||||
start)
|
|
||||||
do_start
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
do_stop
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
exit 0
|
|
||||||
fi
|
|
@ -1,15 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=VFD Clock Service
|
|
||||||
After=network-online.target graphical.target
|
|
||||||
Requires=graphical.target
|
|
||||||
Wants=kodi.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/bin/sh /usr/bin/vfd-clock start
|
|
||||||
ExecStopPost=/bin/sh /usr/bin/vfd-clock stop
|
|
||||||
RemainAfterExit=yes
|
|
||||||
StartLimitInterval=0
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=kodi.target
|
|
Loading…
x
Reference in New Issue
Block a user