[arch-projects] [PATCH] [mkinitcpio] Avoid error message of modprobe if $MODULES is empty
Gerardo Exequiel Pozzi
vmlinuz386 at yahoo.com.ar
Sat Jun 18 01:04:45 EDT 2011
On 06/17/2011 11:21 PM, Gerardo Exequiel Pozzi wrote:
> Bug introduced in 7a165fb842eb1dcfdd9aa27b74354245d6980d19
>
> Signed-off-by: Gerardo Exequiel Pozzi<vmlinuz386 at yahoo.com.ar>
> ---
> init | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/init b/init
> index a5e6103..091200a 100644
> --- a/init
> +++ b/init
> @@ -53,7 +53,9 @@ fi
>
> . /config
>
> -/sbin/modprobe -qab $MODULES
> +if [ -n "${MODULES}" ]; then
> + /sbin/modprobe -qab $MODULES
> +fi
>
> # If rootdelay is empty or not a non-negative integer, set it to 10
> if [ -z "${rootdelay}" ] || ! [ "${rootdelay}" -ge 0 ]; then
oops already sent by Dave.
--
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1
More information about the arch-projects
mailing list