source:
clfs-embedded/bootscripts/clfs/rc.d/init.d/functions@
b4b30f7
Last change on this file since b4b30f7 was 381c53b, checked in by , 18 years ago | |
---|---|
|
|
File size: 293 bytes |
Rev | Line | |
---|---|---|
[a44b91b] | 1 | # Common Routines |
2 | # | |
3 | ||
[381c53b] | 4 | # Default Path for scripts |
5 | # | |
6 | PATH=/bin:/sbin:/usr/bin:/usr/sbin | |
7 | ||
[a44b91b] | 8 | # Check status and print |
9 | # OK or FAIL | |
10 | # | |
11 | check_status() | |
12 | { | |
13 | local ERR=$? | |
14 | echo -en "\\033[65G" | |
15 | if [ $ERR = 0 ]; then | |
[b9cef84] | 16 | echo -en "\\033[1;32mOK" |
[a44b91b] | 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.