Also remove redundant "exit 1" in an error message after call to
help_readman().
if [ "$(whoami)" != "root" ]
then
- help_readman "$0: This script requires root privileges to operate."
+ help_readman "${PROG}: This script requires root privileges to operate."
fi
if ! cat /proc/mounts | awk '{print $2}' | grep -q -F '/memory'
then
- help_readman "$0: This script must be executed from SystemRescueCd"
- exit 1
+ help_readman "${PROG}: This script must be executed from SystemRescueCd"
fi
case "${COMMAND}" in