Skip to content
Snippets Groups Projects
Commit 43276c64 authored by Marius Dinu's avatar Marius Dinu Committed by Rosen Penev
Browse files

tvheadend: fix first-run

The first-run command should create a new tvheadend configuration including an admin account with no name and no password, but it aborts (-A) too early without saving the files. I reported the bug here: https://tvheadend.org/issues/6140


This workaround fixes the problem by removing the tvheadend -A switch and replacing it with a 10s delay and a kill signal. That should be enough even for slow routers to generate and save the configuration. It is meant to be a temporary fix until tvheadend bug is resolved.

Signed-off-by: default avatarMarius Dinu <m95d+git@psihoexpert.ro>
parent 362c8c4d
No related branches found
No related tags found
1 merge request!11Merge openwrt v21.02.2
......@@ -10,7 +10,12 @@ TEMP_CONFIG=/tmp/tvheadend
PERSISTENT_CONFIG=/etc/tvheadend
execute_first_run() {
"$PROG" -c "$1" -B -C -A >/dev/null 2>&1
# This should create a new configuration including an admin account with no name and no password,
# but it aborts (-A) too early without saving it:
# "$PROG" -c "$1" -B -C -A >/dev/null 2>&1
# Instead, run it for 10s, then kill it:
"$PROG" -c "$1" -B -C & TVH_PID=$! ; sleep 10 ; kill $TVH_PID ; sleep 2
# Remove this and go back to initial command if it's working again in newer tvheadend versions.
}
ensure_config_exists() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment