aboutsummaryrefslogtreecommitdiff
path: root/init.d/modules-load.in
diff options
context:
space:
mode:
authorDoug Freed <dwfreed@mtu.edu>2016-08-26 15:23:54 -0400
committerDoug Freed <dwfreed@mtu.edu>2016-08-26 15:23:54 -0400
commitc289774b00d0d7dc38fdc1f0f623569bd184a4b1 (patch)
tree6ce0020ed69f79d0e28e06160df4425dc74fbcf3 /init.d/modules-load.in
parent9dd8ee330d8a4449c937bc95fc8393a55913c8d1 (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/modules-load.in')
-rw-r--r--init.d/modules-load.in4
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