everest-bootscripts/clfs/rc.d/init.d/functions
2022-09-13 17:52:14 -04:00

22 lines
293 B
Plaintext
Executable File

# Common Routines
#
# Default Path for scripts
#
PATH=/bin:/sbin:/usr/bin:/usr/sbin
# Check status and print
# OK or FAIL
#
check_status()
{
local ERR=$?
echo -en "\\033[65G"
if [ $ERR = 0 ]; then
echo -en "\\033[1;32mOK"
else
echo -en "\\033[1;31mFAIL"
fi
echo -e "\\033[0;39m"
}