commit: 79036b237655963983c2cc7992a97086c9495559 Author: Tomasz Wasiak <tjwasiak <AT> poczta <DOT> onet <DOT> pl> AuthorDate: Mon Dec 30 17:09:41 2013 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Sun Jan 8 01:50:38 2017 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=79036b23
doload= and noload= enhancements Support for comma separated multiple module list for doload and noload kernel command line parameters. (minor cleanups to apply & be shorter) Fixes: https://bugs.gentoo.org/show_bug.cgi?id=496512#c4 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> defaults/linuxrc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/defaults/linuxrc b/defaults/linuxrc index 950537a..ae83023 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -140,20 +140,17 @@ do ROOTDELAY=5 ;; firstmods=*) - FIRSTMODS=${x#*=} - FIRSTMODS=$(echo ${FIRSTMODS} | sed -e 's/,/ /g') + FIRSTMODS=$(echo ${FIRSTMODS} ${x#*=} | sed -e 's/^\ *//;s/,/ /g') ;; # Module no-loads doload=*) - MDOLIST=${x#*=} - MDOLIST=$(echo ${MDOLIST} | sed -e 's/,/ /g') + MDOLIST=$(echo ${MDOLIST} ${x#*=} | sed -e 's/^\ *//;s/,/ /g') ;; nodetect) NODETECT=1 ;; noload=*) - MLIST=${x#*=} - MLIST="$(echo ${MLIST} | sed -e 's/,/ /g')" + MLIST=$(echo ${MLIST} ${x#*=} | sed -e 's/^\ *//;s/,/ /g') export MLIST ;; # Redirect output to a specific tty
