--- /etc/rc.d/functions 2006-08-01 09:11:40.000000000 +0100 +++ functions 2006-09-11 10:55:41.000000000 +0100 @@ -72,6 +72,16 @@ exit $retval } +stat_retval() { + ret=$? + [ $# -gt 0 ] && ret=$1 + if [ $ret -eq 0 ]; then + stat_done + else + stat_fail + fi +} + status() { stat_busy "$1" shift @@ -101,5 +111,14 @@ return 0 } +# filter input according to quiet option + +filter() { + read text + if ! [ "`cat /proc/cmdline | grep quiet`" ]; then + echo $text + fi +} + # End of file # vim: set ts=2 noet: