Last active
August 3, 2016 19:05
-
-
Save prometheanfire/9d9a25b9504bbe0dca0f131c0debdd6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function install_gentoo_packages { | |
RUN_ONCE_SHM='1' | |
echo | |
echo 'LOOK AT ME!!!' | |
echo | |
grep /dev/shm /proc/mounts | |
echo $? | |
stat /dev/shm | |
echo | |
echo 'LOOK AT ME!!!' | |
echo | |
if grep -q /dev/shm /proc/mounts; then | |
emerge $@ | |
elif [[ -k /dev/shm ]]; then | |
emerge $@ | |
else | |
fix_shm | |
emerge $@ | |
unfix_shm | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment