From c289774b00d0d7dc38fdc1f0f623569bd184a4b1 Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Fri, 26 Aug 2016 15:23:54 -0400 Subject: 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 0f80396d..2387a8d6 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 -- cgit v1.2.3