mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
tvheadend: xbmc allows 'numeric' setting to be empty. fix
This commit is contained in:
parent
182b3f453d
commit
1e67d52550
@ -73,6 +73,9 @@ for driver_dvb in $(find /storage/.xbmc/addons/driver.dvb.*/bin/userspace-driver
|
|||||||
done
|
done
|
||||||
|
|
||||||
# (wait for) at least 1 adapter (xbmc allows to set 0)
|
# (wait for) at least 1 adapter (xbmc allows to set 0)
|
||||||
|
# xbmc allows "numeric" type field to be empty. lets handle thaat
|
||||||
|
[ "$NUM_ADAPTERS" = "" ] && NUM_ADAPTERS=1
|
||||||
|
# 0 does not make sense. should be 1 or more
|
||||||
[ $NUM_ADAPTERS -lt 1 ] && NUM_ADAPTERS=1
|
[ $NUM_ADAPTERS -lt 1 ] && NUM_ADAPTERS=1
|
||||||
if [ "$WAIT_FOR_FEINIT" == "true" ] ; then
|
if [ "$WAIT_FOR_FEINIT" == "true" ] ; then
|
||||||
while [ true ] ; do
|
while [ true ] ; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user