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:
parent
00e6278cac
commit
852f98d6aa
@ -44,4 +44,5 @@ case "$COMMAND" in
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
@ -48,7 +48,7 @@ case "$COMMAND" in
|
||||
add)
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user