From 8f830bb6cfac2ef38a8435335f48b35ccc43a837 Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Tue, 6 Sep 2011 09:10:36 +0200 Subject: [PATCH] Add fallback in config_scripts --- autoconfig.functions | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/autoconfig.functions b/autoconfig.functions index 3d5410e..9d1104f 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1720,9 +1720,8 @@ if checkbootparam 'scripts' || [ "$DCSMP" = "/mnt/grmlcfg" ]; then # 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 + if [ -z "$SCRIPTS" ]; then + # Fallback to test if DSCDIR/grml.sh exists SCRIPTS="$(cd ${DCSDIR}; /bin/ls -1d [Gg][Rr][Mm][Ll].[Ss][Hh] 2>>$DEBUG)" fi if [ -n "$SCRIPTS" ]; then -- 2.1.4