From 5a0f7ebc8d2cede7532539268e0ffc0bd6816572 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 10 Jul 2011 22:20:28 -0400 Subject: functions: allow ignoring errors on module addition We conditionally, but naively, add modules in some of our install hooks, but the kernel may not have these. Note that these modules can fail silently by detecting a '?' suffix on the module name. In conjunction with this, the add_module function now takes a flag, -t or --try, which will ignore module not found errors from modinfo. The config file will also support this syntax. Signed-off-by: Dave Reisner --- install/sata | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/sata') diff --git a/install/sata b/install/sata index 39fe805..c9b67c3 100644 --- a/install/sata +++ b/install/sata @@ -6,7 +6,7 @@ build() { MODULES+=" $(checked_modules "$filter")" done - [[ $MODULES ]] && MODULES+=" sd_mod" + [[ $MODULES ]] && MODULES+=" sd_mod?" } help() { -- cgit v1.2.3-24-g4f1b