Drop code related to scripts handling on DCSDIR, breaking it for GRMLCFG labeled...
authorAndreas "Jimmy" Gredler <jimmy@grml.org>
Sat, 15 Mar 2014 17:13:47 +0000 (10:13 -0700)
committerMichael Prokop <mika@grml.org>
Thu, 20 Mar 2014 15:11:33 +0000 (16:11 +0100)
Removed again an if clause in the function which finds DCSDIR. It was
redundant as this case is handled before and it broke the use case of
running scripts on a GRMLCFG labeled device. Because it changed to
$DCSDIR instead of $DCSDIR/scripts.

autoconfig.functions

index 34ff4f8..577e3b0 100755 (executable)
@@ -1737,11 +1737,6 @@ if checkbootparam 'scripts' || [ "$DCSMP" = "/mnt/grmlcfg" ]; then
      # backwards compatibility: if no path is given get scripts from scripts/
      SCRIPTS="scripts/$SCRIPTS"
    fi
      # backwards compatibility: if no path is given get scripts from scripts/
      SCRIPTS="scripts/$SCRIPTS"
    fi
-   if [ "$DCSMP" = "/mnt/grmlcfg" ]; then
-     # we are executing from a GRMLCFG labeled fs
-     # kick everything we have done before and start over
-     SCRIPTS="$(cd ${DCSDIR}; /bin/ls -1d [Gg][Rr][Mm][Ll].[Ss][Hh] 2>>$DEBUG)"
-   fi
    if [ -n "$SCRIPTS" ]; then
      SCRIPTS="${DCSDIR}/$SCRIPTS"
      if [ "$DCSMP" = "/mnt/grmlcfg" ]; then
    if [ -n "$SCRIPTS" ]; then
      SCRIPTS="${DCSDIR}/$SCRIPTS"
      if [ "$DCSMP" = "/mnt/grmlcfg" ]; then