## Screen Dimensions
# Find current screen size
if [ -z "${COLUMNS}" ]; then
- COLUMNS=$(stty size)
+ COLUMNS=$(stty size 2>/dev/null)
COLUMNS=${COLUMNS##* }
fi
{
local pidfile=""
local forcestart=""
- local nicelevel="10"
+ local nicelevel=""
# This will ensure compatibility with previous LFS Bootscripts
if [ -n "${PIDFILE}" ]; then
esac
fi
- nice -n "${nicelevel}" "${@}"
+ local cmd="${@}"
+
+ if [ -n "${nicelevel}" ]; then
+ cmd="nice -n "${nicelevel}" ${cmd}"
+ fi
+
+ ${cmd}
evaluate_retval # This is "Probably" not LSB compliant, but required to be compatible with older bootscripts
return 0
}