USE_PROCD=1
PROG="/usr/bin/lcd4linux"
-CONFIGFILE="/etc/lcd4linux.conf"
+STATIC_CONFIG="/etc/lcd4linux.conf"
+DYNAMIC_CONFIG="/tmp/lcd4linux.conf"
start_service() {
- [ -f /etc/lcd4linux.conf ] || return 1
+ if [ -f "$DYNAMIC_CONFIG" ]; then
+ CONFIGFILE="$DYNAMIC_CONFIG"
+ elif [ -f "$STATIC_CONFIG" ]; then
+ CONFIGFILE="$STATIC_CONFIG"
+ else
+ echo "No config found"
+ return 1
+ fi
+
procd_open_instance
procd_set_param command "$PROG"
procd_append_param command -F