modprobe: don't return failure just because we didn't find global config.
Without this change, a successful modprobe on Android exits with status 1 because Android doesn't have /etc/modprobe.conf or /etc/modprobe.d/ --- neither of which seem to be required on desktop Linux either.
This commit is contained in:
parent
93e1b9ecb1
commit
0a3809566e
@ -553,8 +553,8 @@ void modprobe_main(void)
|
||||
if (toys.optflags&FLAG_v) puts("All modules loaded");
|
||||
return;
|
||||
}
|
||||
dirtree_read("/etc/modprobe.conf", config_action);
|
||||
dirtree_read("/etc/modprobe.d", config_action);
|
||||
dirtree_flagread("/etc/modprobe.conf", DIRTREE_SHUTUP, config_action);
|
||||
dirtree_flagread("/etc/modprobe.d", DIRTREE_SHUTUP, config_action);
|
||||
|
||||
for (dirs = TT.dirs; dirs; dirs = dirs->next) {
|
||||
xchdir(dirs->arg);
|
||||
|
Loading…
Reference in New Issue
Block a user