[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2866: trailing LF required in /etc/modules

Package: modules
Version: 1.3.69f-3

When the last line in /etc/modules lacks a LF (linefeed, \n) it will
not be processed, i.e. the module isn't loaded.

In /etc/init.d/module :

# Loop over every line in /etc/modules.
echo -n 'Loading modules:'
while read module args
        case "$module" in
                \#*|"") continue ;;
        echo -n " $module"
        modprobe $module $args
done < /etc/modules

The read does not read lines without LF.

Sven Rudolph <sr1@inf.tu-dresden.de> ; WWW : http://www.sax.de/~sr1/

Reply to: