Skip to content

Commit b668760

Browse files
committed
set LANG and DISPLAY to fix osd_cat execution
1 parent 1fc3d27 commit b668760

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

buildroot-external/rootfs-overlay/bin/umounter.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
# show an OSD display
44
if [ -x /usr/bin/osd_cat ]; then
5-
echo "Unmounting USB..." | DISPLAY=:0 /usr/bin/osd_cat -A center -p top -f '-*-fixed-bold-r-*-*-30-*-*-*-*-*-*-*' -c green -s 5 -d 20 &
5+
export LANG=en_US.UTF-8
6+
export DISPLAY=:0
7+
echo "Unmounting USB..." | /usr/bin/osd_cat -A center -p top -f '-*-fixed-bold-r-*-*-30-*-*-*-*-*-*-*' -c green -s 5 -d 20 &
68
fi
79

810
# umount all stuff including bind mounts
@@ -26,6 +28,8 @@ if [ -x /usr/bin/osd_cat ]; then
2628
POS=200
2729
COLOR=red
2830
fi
29-
echo "${RESULT}" | DISPLAY=:0 /usr/bin/osd_cat -A center -p top -i ${POS} -f '-*-fixed-bold-r-*-*-30-*-*-*-*-*-*-*' -c ${COLOR} -s 5 -d 2
31+
export LANG=en_US.UTF-8
32+
export DISPLAY=:0
33+
echo "${RESULT}" | /usr/bin/osd_cat -A center -p top -i ${POS} -f '-*-fixed-bold-r-*-*-30-*-*-*-*-*-*-*' -c ${COLOR} -s 5 -d 2
3034
pkill osd_cat
3135
fi

0 commit comments

Comments
 (0)