Split patterns for grep in config_stats.
authorUlrich Dangel <mru@grml.org>
Fri, 9 Dec 2011 23:25:46 +0000 (00:25 +0100)
committerUlrich Dangel <mru@grml.org>
Fri, 9 Dec 2011 23:26:29 +0000 (00:26 +0100)
autoconfig.functions

index ba8a13e..a0e6f17 100755 (executable)
@@ -1349,7 +1349,7 @@ config_stats() {
 
    PARAMS="$( echo "$CMDLINE" | sed -e 's/=[^ ]*/=x/g' | tr " " "\n"|sort|tr "\n" " " )"
 
-   echo "$CMDLINE" | grep -q -e "fetch|nfsroot" && BOOT="remote"
+   echo "$CMDLINE" | grep -q -e "fetch" -e "nfsroot" && BOOT="remote"
    [ -z "$BOOT" ] && BOOT="local"
 
    ADDITIONAL_PARAMS=""