slitaz-boot-scripts view etc/init.d/rc.functions @ rev 80

will declare files in /etc
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 13 01:06:41 2008 +0200 (2008-05-13)
parents e122131b9ad6
children 58cc6775e0f0
line source
1 # /etc/init.d/rc.functions: SliTaz boot scripts functions.
2 #
4 # Status functions.
5 status()
6 {
7 local CHECK=$?
8 echo -en "\\033[70G[ "
9 if [ $CHECK = 0 ]; then
10 echo -en "\\033[1;33mOK"
11 else
12 echo -en "\\033[1;31mFailed"
13 fi
14 echo -e "\\033[0;39m ]"
15 }
17 # An other way to sleep.
18 usleep_progress()
19 {
20 CHAR='='
21 for i in `seq 79-1`
22 do
23 echo -n "$CHAR"
24 usleep 28000
25 done
26 echo "$CHAR"
27 }