commit: c289774b00d0d7dc38fdc1f0f623569bd184a4b1 Author: Doug Freed <dwfreed <AT> mtu <DOT> edu> AuthorDate: Fri Aug 26 19:23:54 2016 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Fri Aug 26 19:23:54 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=c289774b
modules-load: handle comments better This handles comments without a trailing space after the comment character. Reported-By: josef64 init.d/modules-load.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.d/modules-load.in b/init.d/modules-load.in index 0f80396..2387a8d 100644 --- a/init.d/modules-load.in +++ b/init.d/modules-load.in @@ -44,8 +44,8 @@ load_modules() [ -z "$file" ] && return 0 while read m x; do case $m in - \;) continue ;; - \#) continue ;; + \;*) continue ;; + \#*) continue ;; *) modules="$modules $m" ;; esac