slitaz-boot-scripts diff etc/init.d/rc.functions @ rev 268
system.sh: add console= parameter
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 21:45:02 2011 +0200 (2011-05-18) |
parents | 05ced4fe03dd |
children |
line diff
1.1 --- a/etc/init.d/rc.functions Thu Nov 04 09:51:36 2010 +0000 1.2 +++ b/etc/init.d/rc.functions Wed May 18 21:45:02 2011 +0200 1.3 @@ -1,30 +1,16 @@ 1.4 +#!/bin/sh 1.5 # /etc/init.d/rc.functions: SliTaz boot scripts functions. 1.6 # 1.7 1.8 # Status functions. 1.9 -status() 1.10 -{ 1.11 - local CHECK=$? 1.12 +status() { 1.13 echo -en "\\033[70G[ " 1.14 - if [ $CHECK = 0 ]; then 1.15 - echo -en "\\033[1;33mOK" 1.16 + if [ $? = 0 ]; then 1.17 + echo -en "\\033[1;32mOK" 1.18 else 1.19 echo -en "\\033[1;31mFailed" 1.20 fi 1.21 echo -e "\\033[0;39m ]" 1.22 - return $CHECK 1.23 -} 1.24 - 1.25 -# Another way to sleep. 1.26 -usleep_progress() 1.27 -{ 1.28 - CHAR='=' 1.29 - for i in `seq 1 79` 1.30 - do 1.31 - echo -n "$CHAR" 1.32 - usleep 18000 1.33 - done 1.34 - echo "$CHAR" 1.35 } 1.36 1.37 # Check daemon with pidfile: usage check_pidfile $PIDFILE $DAEMON 1.38 @@ -40,6 +26,3 @@ 1.39 return 2 1.40 fi 1.41 } 1.42 - 1.43 -# Set TZ 1.44 -[ -s /etc/TZ ] && export TZ="$(cat /etc/TZ)"