diff options
author | Doug Freed <dwfreed@mtu.edu> | 2016-08-26 15:23:54 -0400 |
---|---|---|
committer | Doug Freed <dwfreed@mtu.edu> | 2016-08-26 15:23:54 -0400 |
commit | c289774b00d0d7dc38fdc1f0f623569bd184a4b1 (patch) | |
tree | 6ce0020ed69f79d0e28e06160df4425dc74fbcf3 /init.d | |
parent | 9dd8ee330d8a4449c937bc95fc8393a55913c8d1 (diff) |
modules-load: handle comments better
This handles comments without a trailing space after the comment
character.
Reported-By: josef64
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/modules-load.in | 4 |
1 files 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 |