1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

kernel-install: return 0 for unknown verbs in plugins

In practice this makes little difference, because kernel-install will
only call the plugins for 'add' or 'remove', and if we were to add a
new verb to kernel-install, we'd just change the plugins at the same
time. But our plugins serve as documentation for external plugins too,
and there it's better to silently ignore unknown verbs so that we can
add new verbs in the future.

(50-depomod.install was already like that.)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-07-02 14:44:01 +02:00
parent 00e6278cac
commit 852f98d6aa
2 changed files with 2 additions and 1 deletions

View File

@ -44,4 +44,5 @@ case "$COMMAND" in
;;
*)
exit 0
;;
esac

View File

@ -48,7 +48,7 @@ case "$COMMAND" in
add)
;;
*)
exit 1
exit 0
;;
esac