Support tolino fw >=5.18 (#15759)
Kobo/Tolino firmware 5.18 uses a binary hwdetect. Also, we have to kill speech-dispatcher in order to restart nickel. Fixes #15747
This commit is contained in:
1 parent
607c47cf3c
commit
574fe9f6ef
4 files changed
+45
-4
No files matched your search
@@ -250,7 +250,16 @@ if [ -z "${PRODUCT}" ]; then
|
||||
fi
|
||||
|
||||
if [ -z "${PRODUCT}" ]; then
|
||||
PRODUCT="$(/usr/bin/hwdetect.sh 2>/dev/null)"
|
||||
# FW >= 5.18 uses a binary hwdetect instead of the hwdetect.sh script. If hwdetect is available, we can use
|
||||
# utils.sh for convenience.
|
||||
if [ -e "/usr/bin/hwdetect" ]; then
|
||||
# shellcheck disable=SC1091
|
||||
. /usr/libexec/platform/utils.sh
|
||||
PRODUCT="$(get_product_name)"
|
||||
else
|
||||
PRODUCT="$(/usr/bin/hwdetect.sh 2>/dev/null)"
|
||||
fi
|
||||
|
||||
export PRODUCT
|
||||
fi
|
||||
|
||||
|
||||
+13
-1
@@ -20,7 +20,16 @@ unset FBINK_FORCE_ROTA
|
||||
|
||||
# kobo v5 animation is originally done in display-init, we copy the neccessary parts here.
|
||||
if [ -e "/etc/init.d/display-init.sh" ]; then
|
||||
PRODUCT=$(hwdetect.sh)
|
||||
# FW >= 5.18 uses a binary hwdetect instead of the hwdetect.sh script. If hwdetect is available, we can use
|
||||
# utils.sh for convenience.
|
||||
if [ -e "/usr/bin/hwdetect" ]; then
|
||||
# shellcheck disable=SC1091
|
||||
. /usr/libexec/platform/utils.sh
|
||||
PRODUCT="$(get_product_name)"
|
||||
else
|
||||
PRODUCT=$(hwdetect.sh)
|
||||
fi
|
||||
|
||||
export PRODUCT
|
||||
echo "Starting boot animation..."
|
||||
animator.sh /etc/images/"${PRODUCT}"-on-*.raw.gz &
|
||||
@@ -145,6 +154,9 @@ if [ -e "/etc/init.d/z-nickel-hardware-status" ]; then
|
||||
if grep "pulseaudio" "/etc/rc.local"; then
|
||||
killall pulseaudio
|
||||
fi
|
||||
if grep "speech-dispatcher" "/etc/rc.local"; then
|
||||
killall speech-dispatcher
|
||||
fi
|
||||
/etc/init.d/z-nickel-hardware-status
|
||||
sync
|
||||
/etc/rc.local
|
||||
|
||||
Reference in new issue
Block a user