#!/bin/bash
junk=`dmesg | grep "junk in compressed archive"`
# if this is x86_64 platform and found junk in rd.gz then stuck here
if /bin/uname -a | /bin/egrep "(x86_64)" > /dev/null 2>&1 && [ -n "${junk}" ]; then
logger -t rdgz-check -p err "Found junk when decompressing rd.gz"
while [ 1 ]
do
sleep 5
done
fi
exit 0