Initial commit
This commit is contained in:
21
clfs/rc.d/init.d/functions
Executable file
21
clfs/rc.d/init.d/functions
Executable file
@@ -0,0 +1,21 @@
|
||||
# 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"
|
||||
}
|
||||
Reference in New Issue
Block a user