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

Typo and modified shutdown screen output
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 23 01:42:47 2008 +0100 (2008-02-23)
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 }