Index: trunk/packages/invirt-base/debian/changelog
===================================================================
--- trunk/packages/invirt-base/debian/changelog	(revision 1926)
+++ trunk/packages/invirt-base/debian/changelog	(revision 1928)
@@ -2,4 +2,5 @@
 
   * run_parts_list: fix unclear docstring
+  * config-init.sh: degrade to non-bash gracefully
 
  -- Greg Price <price@mit.edu>  Sun, 28 Dec 2008 01:00:07 -0500
Index: trunk/packages/invirt-base/files/lib/init/config-init.sh
===================================================================
--- trunk/packages/invirt-base/files/lib/init/config-init.sh	(revision 1926)
+++ trunk/packages/invirt-base/files/lib/init/config-init.sh	(revision 1928)
@@ -1,14 +1,29 @@
 # For a package which only configures another, "parent" package.
 #
-# Global variable PARENTPACKAGE names parent; may be array
-# for zero or many parents.
+# Global variable PARENTPACKAGE names parent; unset for no parent,
+# array for (zero or one or) many parents.
 #
 # Global variable PACKAGE names this package, for log message.
 #
-# Requires bash.
+# If BASH_VERSION is null or unset, accepts only one parent in
+# PARENTPACKAGE, or empty for zero.
 
 . /lib/init/vars.sh
 . /lib/lsb/init-functions
 . /lib/init/gen-files.sh
+
+if [ $BASH_VERSION ]; then
+  handle_parents () {
+    for p in "${PARENTPACKAGE[@]}"; do
+      invoke-rc.d "$p" "$1"
+    done
+  }
+else
+  handle_parents () {
+    if [ -n "$PARENTPACKAGE" ]; then
+      invoke-rc.d "$PARENTPACKAGE" "$1"
+    fi
+  }
+fi
 
 config_init () {
@@ -18,12 +33,8 @@
       gen_files
       log_end_msg $?
-      for p in "${PARENTPACKAGE[@]}"; do
-        invoke-rc.d "$p" "$1"
-      done
+      handle_parents "$1"
       ;;
     stop)
-      for p in "${PARENTPACKAGE[@]}"; do
-        invoke-rc.d "$p" "$1"
-      done
+      handle_parents "$1"
       ;;
     *)
