The script /etc/init.d/mdadm-raid uses "set -u". That means that an error occurs if we refer to a variable which is unset. Unfortunately mdadm-raid calls log-daemon-msg with no value for $2. The end result is that "/etc/init.d/mdadm-raid stop" will fail.
/lib/lsb/init-functions does not suffer from this problem because it uses the shell construct ${foo:-} to supply a default value for the shell variable foo when referring to it. In this example the default value is the empty string, which suits us just fine. Applying this patch allows /etc/init.d/mdadm-raid to complete successfully. --- lsb-base-logging.sh 2007/07/20 08:38:56 1.1 +++ lsb-base-logging.sh 2007/07/20 08:43:13 @@ -52,7 +52,7 @@ # HACK! If usplash is running when GDM/KDM starts the terminal # gets crazy. Enforce usplash ends before running GDM/KDM. (yes, # start kills it) - if [ "$2" = "gdm" ] || [ "$2" = "kdm" ]; then + if [ "${2:-}" = "gdm" ] || [ "${2:-}" = "kdm" ]; then DO_NOT_SWITCH_VT=yes /etc/init.d/usplash start fi @@ -107,7 +107,7 @@ fi fi - if [ "$COL" ] && [ -x "$TPUT" ]; then + if [ "${COL:-}" ] && [ -x "${TPUT:-}" ]; then printf "\r" $TPUT hpa $COL if [ "$1" -eq 0 ]; then -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]