mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-16 03:02:47 +02:00
If we use return without an argument it will use the exit code of the last command. For some reason, this is non-zero with current OpenRC which causes the stop() action to fail. However, since we want to overwrite OpenRC's default_stop() to signify that this service doesn't have any meaningful stop() action, we don't want to delete the function entirely. Instead, just always return a zero exit status. While at it, do the same in start(). Fixes #17850
22 lines
293 B
Bash
22 lines
293 B
Bash
#!/sbin/openrc-run
|
|
|
|
description="Applies a keymap for the consoles."
|
|
|
|
depend()
|
|
{
|
|
provide keymaps
|
|
need localmount
|
|
keyword -openvz -prefix -uml -vserver -xenu -lxc
|
|
}
|
|
|
|
start() {
|
|
[ -z "$KEYMAP" ] && return 0
|
|
ebegin "Setting keymap"
|
|
zcat "$KEYMAP" | loadkmap
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
return 0
|
|
}
|