RAM=`echo $QEMU_MEMORY | sed 's/M$//'`
if [[ -z "$RAM" || $RAM -gt 128 ]]; then
echo "WARNING: qemuarm does not support > 128M of RAM."
- echo "*** Changing QEMU_MEMORY to default of 128M ***"
+ echo "Changing QEMU_MEMORY to default of 128M."
QEMU_MEMORY="128M"
SCRIPT_QEMU_EXTRA_OPT=`echo $SCRIPT_QEMU_EXTRA_OPT | sed -e "s/$mem_set/-m 128/" `
fi
# Check that the lockfile is not stale
ps=`ps -ewwo pid | grep $(cat $lockfile.lock)`
if [ -z "$ps" ]; then
- echo "Warning: Stale lock file detected, deleting $lockfile.lock"
+ echo "WARNING: Stale lock file detected, deleting $lockfile.lock."
rm -f $lockfile.lock
echo $$ > $lockfile.lock
else
PIDFILE=`mktemp`
$DISTCCD --allow 192.168.7.2 --daemon --pid-file $PIDFILE &
else
- echo "Warning: distccd not present, no distcc support loaded."
+ echo "WARNING: distccd not present, no distcc support loaded."
fi
# qemu got segfault if linked with nVidia's libgl
if ldd $QEMUBIN | grep -i nvidia &> /dev/null
then
- echo "************** !!!Warning!!! **************
- nVidia's proprietary OpenGL libraries are known to have compatibility
- issues with qemu, resulting in a segfault. Please uninstall these
- drivers or ensure the mesa libGL libraries precede nvidia's via LD_PRELOAD.
- "
+cat << EOM
+WARNING: nVidia proprietary OpenGL libraries detected.
+nVidia's OpenGL libraries are known to have compatibility issues with qemu,
+resulting in a segfault. Please uninstall these drivers or ensure the mesa libGL
+libraries precede nvidia's via LD_PRELOAD.
+EOM
fi
echo "Running $QEMU..."