mirror of
https://github.com/woodchen-ink/docker-firefox.git
synced 2025-07-18 13:52:02 +08:00
Fixed the shared memory check.
This commit is contained in:
parent
850bb09e75
commit
ab4b80ebeb
@ -20,9 +20,9 @@ fi
|
||||
# Verify the size of /dev/shm.
|
||||
SHM_SIZE_MB="$(df -m /dev/shm | tail -n 1 | tr -s ' ' | cut -d ' ' -f2)"
|
||||
if [ "$SHM_SIZE_MB" -eq 64 ]; then
|
||||
echo 'FAIL' > /tmp/.firefox_shm_check
|
||||
echo 'SHM_CHECK_FAIL' > /tmp/.firefox_shm_check
|
||||
else
|
||||
echo 'PASS' > /tmp/.firefox_shm_check
|
||||
echo 'SHM_CHECK_PASS' > /tmp/.firefox_shm_check
|
||||
fi
|
||||
|
||||
if /usr/bin/membarrier_check 2>/dev/null; then
|
||||
|
@ -5,8 +5,8 @@ set -u # Treat unset variables as an error.
|
||||
|
||||
LINE="$1"
|
||||
|
||||
if [ "$LINE" = "FAIL" ]; then
|
||||
echo 'ACK' > /tmp/.firefox_shm_check
|
||||
if [ "$LINE" = "SHM_CHECK_FAIL" ]; then
|
||||
echo 'SHM_CHECK_ACK' > /tmp/.firefox_shm_check
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user