Fixed the shared memory check.

This commit is contained in:
Jocelyn Le Sage 2020-07-19 10:19:49 -04:00
parent 850bb09e75
commit ab4b80ebeb
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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