diff options
Diffstat (limited to 'kernel/xpp/utils/genzaptelconf')
-rwxr-xr-x | kernel/xpp/utils/genzaptelconf | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/kernel/xpp/utils/genzaptelconf b/kernel/xpp/utils/genzaptelconf index 163f595..5f28c50 100755 --- a/kernel/xpp/utils/genzaptelconf +++ b/kernel/xpp/utils/genzaptelconf @@ -79,6 +79,11 @@ SPAN_GROUP_BASE=10 # and other devices). brint_overlap=no +# Wait for all the Astribanks to load. +# If you don't have latest zaptel, you may need to set this to +# 'waitfor_xpds_internal' +WAITFOR_XPDS=${WAITFOR_XPDS:-/usr/share/zaptel/waitfor_xpds} + # a temporary directory to store whatever we need to remember. # # The main loop of genconf is run in a sub-process. @@ -265,6 +270,10 @@ zap_reg_xpp() { done } +waitfor_xpds_internal() { + cat /proc/xpp/XBUS-[0-9]*/waitfor_xpds 2>/dev/null || true +} + # Initialize the Xorcom Astribank (xpp/) xpp_startup() { # do nothing if the module xpp was not loaded, or if no @@ -273,7 +282,7 @@ xpp_startup() { if ! grep -q 'STATUS=connected' /proc/xpp/xbuses; then return 0; fi echo "Waiting for Astribank devices to initialize:" - cat /proc/xpp/XBUS-[0-9]*/waitfor_xpds 2>/dev/null || true + $WAITFOR_XPDS # overriding locales for the above two, as perl can be noisy # when locales are missing. |