commit: 5f1daa6f30849d95db1f6b4b84abdc9645db3f94
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:31:59 2016 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=5f1daa6f
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