X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 752C1DC0F62 for ; Tue, 19 Apr 2016 21:29:18 +0000 (UTC) Received: from sender153-mail.zoho.com (sender153-mail.zoho.com [74.201.84.153]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 0DE79DC085A for ; Tue, 19 Apr 2016 21:29:17 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id; b=VStn4N7OAVtA2/AzlUPwfFa1+8Krk55csBgty8yr2FC0SbS4N4SCotQxgsYfGUjStPVS5f43Dsqg gSCIz6+W/1gVJ0Zr2iC6ngxu5ryNBx2xKJG6Lk0MHnp7GL3xilM4 Received: from localhost (89-74-38-183.dynamic.chello.pl [89.74.38.183]) by mx.zohomail.com with SMTPS id 1461101354161974.9444048679646; Tue, 19 Apr 2016 14:29:14 -0700 (PDT) From: Przemyslaw Pawelczyk To: alpine-devel@lists.alpinelinux.org Cc: ncopa@alpinelinux.org Subject: [alpine-devel] [PATCH] main/openrc: Fix sed script in modules.initd. Date: Tue, 19 Apr 2016 23:29:04 +0200 Message-Id: <1461101344-3537-1-git-send-email-przemoc@zoho.com> X-Mailer: git-send-email 2.6.6 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 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). --- main/openrc/modules.initd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/openrc/modules.initd b/main/openrc/modules.initd index a9829f4..8d94f97 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 -- 2.6.6 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---