Browse Source

Merge pull request #14190 from TDT-AG/pr/20201210-lcd4linux

lcd4linux: switch service to procd
lilik-openwrt-22.03
Florian Eckert 4 years ago
committed by GitHub
parent
commit
3292d24cfe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 9 deletions
  1. +1
    -1
      utils/lcd4linux/Makefile
  2. +13
    -8
      utils/lcd4linux/files/lcd4linux.init

+ 1
- 1
utils/lcd4linux/Makefile View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=lcd4linux PKG_NAME:=lcd4linux
PKG_RELEASE:=6
PKG_RELEASE:=7
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/feckert/lcd4linux PKG_SOURCE_URL:=https://github.com/feckert/lcd4linux


+ 13
- 8
utils/lcd4linux/files/lcd4linux.init View File

@ -2,14 +2,19 @@
# Copyright (C) 2007-2015 OpenWrt.org # Copyright (C) 2007-2015 OpenWrt.org
START=98 START=98
USE_PROCD=1
SERVICE_USE_PID=1
PROG="/usr/bin/lcd4linux"
CONFIGFILE="/etc/lcd4linux.conf"
start() {
service_start /usr/bin/lcd4linux -o /tmp/lcd4linux.png -q
start_service() {
[ -f /etc/lcd4linux.conf ] || return 1
procd_open_instance
procd_set_param command "$PROG"
procd_append_param command -F
procd_append_param command -q
procd_append_param command -o /tmp/lcd4linux.png
procd_append_param command -f "$CONFIGFILE"
procd_set_param file "$CONFIGFILE"
procd_close_instance
} }
stop() {
service_stop /usr/bin/lcd4linux
}

Loading…
Cancel
Save