# functions This file contains functions to be used by most or all
# shell scripts in the /etc/init.d directory.
#
-# $Id: functions,v 1.19 1999/08/09 20:00:08 wiget Exp $
+# $Id: functions,v 1.20 1999/08/09 21:05:27 wiget Exp $
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Hacked by: Greg Galloway and Marc Ewing
{
what="`nls "DONE"`"; typeset -i offset=${#what}
text="`nls "$*"`"..................................................................................
- printf "%.$((69 - $offset))s" "$text"
+ awk "BEGIN {printf \"%.$((69 - $offset))s\", \"$text\";}"
}
busy()
# responsible for the very first setup of basic
# things, such as setting the hostname.
#
-# $Id: rc,v 1.7 1999/07/31 11:24:18 misiek Exp $
+# $Id: rc,v 1.8 1999/08/09 21:05:26 wiget Exp $
#
# Original Author:
# Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Say something ;)
-printf "%.78s" "`tput setaf 2``nls "Resource Manager:"``tput setaf 7` `nls "Leaving runlevel number"`............................................................................"
+text="`tput setaf 2``nls "Resource Manager:"``tput setaf 7` `nls "Leaving runlevel number"`............................................................................"
+awk "BEGIN {printf \"%.78s\", \"$text\";}"
echo "`tput setaf 6`[`tput setaf 2` $runlevel `tput setaf 6`]`tput setaf 7`"
# Is there an rc directory for this new runlevel?
fi
# Say something ;)
-printf "%.78s" "`tput setaf 2``nls "Resource Manager:"``tput setaf 7` `nls "Runlevel has been reached"`............................................................................"
+text="`tput setaf 2``nls "Resource Manager:"``tput setaf 7` `nls "Runlevel has been reached"`............................................................................"
+awk "BEGIN {printf \"%.78s\", \"$text\";}"
echo "`tput setaf 6`[`tput setaf 2` $runlevel `tput setaf 6`]`tput setaf 7`"