slitaz-base-files rev 144 5.2

rc.functions: use libtaz.sh for status
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 01 09:29:59 2012 +0200 (2012-05-01)
parents e0d983dc4669
children b6a21696adab
files rootfs/etc/init.d/rc.functions
line diff
     1.1 --- a/rootfs/etc/init.d/rc.functions	Mon Apr 30 09:23:29 2012 +0200
     1.2 +++ b/rootfs/etc/init.d/rc.functions	Tue May 01 09:29:59 2012 +0200
     1.3 @@ -2,16 +2,7 @@
     1.4  # /etc/init.d/rc.functions: SliTaz boot scripts functions.
     1.5  #
     1.6  
     1.7 -# Status functions.
     1.8 -status() {
     1.9 -	echo -en "\\033[70G[ "
    1.10 -	if [ $? = 0 ]; then
    1.11 -		echo -en "\\033[1;32mOK"
    1.12 -	else
    1.13 -		echo -en "\\033[1;31mFailed"
    1.14 -	fi
    1.15 -	echo -e "\\033[0;39m ]"
    1.16 -}
    1.17 +. /lib/libtaz.sh
    1.18  
    1.19  # Check daemon with pidfile: usage check_pidfile $PIDFILE $DAEMON
    1.20  active_pidfile()