source: bootscripts-embedded/clfs/rc.d/init.d/functions @ 73ee2a6

Last change on this file since 73ee2a6 was 292c832, checked in by Andrew Bradford <bradfa@…>, 13 years ago

Imported updates of existing bootscripts

Imported bootscripts that already existed from clfs-embedded/bootscripts
as bootscripts should be kept in this repo rather than in the
clfs-embedded repo.

The script changes have NOT BEEN TESTED! (yet)
This is part of a cleanup of bootscripts.

  • Property mode set to 100755
File size: 293 bytes
Line 
1# Common Routines
2#
3
4# Default Path for scripts
5#
6PATH=/bin:/sbin:/usr/bin:/usr/sbin
7
8# Check status and print
9# OK or FAIL
10#
11check_status()
12{
13        local ERR=$?
14        echo -en "\\033[65G"
15        if [ $ERR = 0 ]; then
16                echo -en "\\033[1;32mOK"
17        else
18                echo -en "\\033[1;31mFAIL"
19        fi
20        echo -e "\\033[0;39m"
21}
Note: See TracBrowser for help on using the repository browser.