aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@zoho.com>2016-04-19 23:29:04 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-21 07:49:29 +0000
commitfc95677dd60833bca07ad5c2a037058e94471ff7 (patch)
tree1668c6d536f411bcde7b45aa1fb8e9bafd38f62c
parent6f1455af2eb84b79c5c4d36603ae2f873be122ff (diff)
downloadaports-fc95677dd60833bca07ad5c2a037058e94471ff7.tar.bz2
aports-fc95677dd60833bca07ad5c2a037058e94471ff7.tar.xz
main/openrc: Fix sed script in modules.initd.
Old sed script did not remove blank lines, so one could easily get: modprobe: ERROR: missing parameters. See -h. during boot, e.g. from comment in /etc/modules-load.d/lm_sensors.conf generated by sensors-detect (from lm_sensors-detect package).
-rw-r--r--main/openrc/modules.initd2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/openrc/modules.initd b/main/openrc/modules.initd
index a9829f4bc5..8d94f976e8 100644
--- a/main/openrc/modules.initd
+++ b/main/openrc/modules.initd
@@ -19,7 +19,7 @@ start() {
continue
fi
- sed 's/\#.*//g' < "$f" | while read module args; do
+ sed 's/\#.*//g;/^[[:space:]]*$/d' < "$f" | while read module args; do
modprobe -q $module $args
done
done