slitaz-base-files diff rootfs/etc/init.d/rc.functions @ rev 144
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 | c2f69fa0c490 |
children | 78038351c7c8 |
line diff
1.1 --- a/rootfs/etc/init.d/rc.functions Tue Mar 20 09:05:04 2012 +0100 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()