Allow addons to pass up their exit status in import_addon. Simplify /dev handling in init.sh and add mdev as an option.
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user