From: Michael Prokop Date: Thu, 27 Sep 2012 08:24:03 +0000 (+0200) Subject: Do not limit supported file names of scripts to run-parts defaults X-Git-Tag: v0.9.58~2 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=7ce3406250811932eaba5e0fd486fe6ed1d2cde5 Do not limit supported file names of scripts to run-parts defaults A file named foobar.sh won't be covered by "run-parts $DIRECTORY", which is stupid and unexpected behaviour. --- diff --git a/autoconfig.functions b/autoconfig.functions index 06265e8..97debc0 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1703,7 +1703,7 @@ if checkbootparam 'scripts' || [ "$DCSMP" = "/mnt/grmlcfg" ]; then sh -c $SCRIPTS elif [ -d "$SCRIPTS" ]; then einfo "Bootparameter scripts found. Trying to execute from directory ${SCRIPTS}:" - run-parts $SCRIPTS + run-parts --regex '.*' $SCRIPTS else einfo "Bootparameter scripts found. Trying to execute ${SCRIPTS}:" sh -c $SCRIPTS diff --git a/doc/grml-autoconfig.current.txt b/doc/grml-autoconfig.current.txt index 350ccc7..12eec8a 100644 --- a/doc/grml-autoconfig.current.txt +++ b/doc/grml-autoconfig.current.txt @@ -101,9 +101,7 @@ scripts:: relative to DCSDIR. If the path points to a file, this single file is executed. If no path is given, it defaults to scripts/grml.sh. If the given name points to a directory, all scripts inside it are - executed, but the run-parts name restrictions apply: script names must - consist entirely of upper and lower case letters, digits, underscores, - and hyphens. Usage examples: + executed. Usage examples: scripts => run script DCSDIR/scripts/grml.sh scripts=foobar.sh => run script foobar.sh in DCSDIR