From 4c52ee2f28ef9d8e27dbc6e159ff3357136d8f69 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sat, 17 May 2014 10:15:10 +0000 Subject: [PATCH] - one more fix for bash --- rc-scripts-sh_fixes.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/rc-scripts-sh_fixes.patch b/rc-scripts-sh_fixes.patch index 4827cde..bd66f65 100644 --- a/rc-scripts-sh_fixes.patch +++ b/rc-scripts-sh_fixes.patch @@ -1,3 +1,30 @@ +diff -ur rc-scripts-0.4.11.orig/rc.d/rc rc-scripts-0.4.11/rc.d/rc +--- rc-scripts-0.4.11.orig/rc.d/rc 2013-11-18 21:13:37.000000000 +0000 ++++ rc-scripts-0.4.11/rc.d/rc 2014-05-17 10:10:26.085999953 +0000 +@@ -147,14 +147,15 @@ + text="$(termput op)$(nls '%sResource Manager: %sEntering runlevel number' "$af2" "$af7")" + text_size="$(nls '%sResource Manager: %sEntering runlevel number' "" "")" + resp_size="$(nls 'DONE')" +-{ +- local _len=${#text_size} +- local _last_col=$(($INIT_COL+${#resp_size}-${#runlevel})) +- while [ $((_len++)) -lt $_last_col ]; do +- text="$text." +- done +- echo -n "$text" +-} ++ ++_len=${#text_size} ++_last_col=$(($INIT_COL+${#resp_size}-${#runlevel})) ++while [ $((_len++)) -lt $_last_col ]; do ++ text="$text." ++done ++echo -n "$text" ++unset _len _last_col ++ + echo "${af6}[${af2} $runlevel ${af6}]${af7}" + + # Is there an rc directory for this new runlevel? diff -ur rc-scripts-0.4.11.orig/rc.d/rc.sysinit rc-scripts-0.4.11/rc.d/rc.sysinit --- rc-scripts-0.4.11.orig/rc.d/rc.sysinit 2014-03-02 10:02:29.000000000 +0000 +++ rc-scripts-0.4.11/rc.d/rc.sysinit 2014-05-11 15:06:33.166000019 +0000 -- 2.46.0