Add support for /boot/isolinux/submenu*.cfg files.
authorMichael Prokop <mika@grml.org>
Thu, 4 Mar 2010 09:55:56 +0000 (10:55 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 4 Mar 2010 09:55:56 +0000 (10:55 +0100)
grml-live

index 316e810..9894e95 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -794,6 +794,11 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then
          echo "include default.cfg"     >  "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
          echo "include menuoptions.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
          echo "include grml.cfg"        >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
+
+         for f in "${BUILD_OUTPUT}"/boot/isolinux/submenu*.cfg ; do
+           echo "include $(basename $f)"     >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
+         done
+
          echo "include options.cfg"     >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"
          if [ ! -n "$NO_ADDONS" ] ; then
            echo "include addons.cfg"    >> "${BUILD_OUTPUT}/boot/isolinux/grmlmain.cfg"