From 2266255ac58158272ca7393e6abbffee89018005 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 17 Apr 2007 00:07:09 +0000 Subject: Allow addons to pass up their exit status in import_addon. Simplify /dev handling in init.sh and add mdev as an option. --- sh/rc-functions.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sh') diff --git a/sh/rc-functions.sh b/sh/rc-functions.sh index 586471dd..632060ad 100755 --- a/sh/rc-functions.sh +++ b/sh/rc-functions.sh @@ -6,11 +6,8 @@ has_addon() { } import_addon() { - if has_addon "$1" ; then - . "${RC_LIBDIR}/addons/$1.sh" - return 0 - fi - return 1 + has_addon "$1" || return 1 + . "${RC_LIBDIR}/addons/$1.sh" } start_addon() { -- cgit v1.2.3