PREUN
/bin/sh
if [ $1 -eq 0 ]; then
# Disable and stop the units
/bin/systemctl disable system-setup-keyboard.service >/dev/null 2>&1 || :
/bin/systemctl stop system-setup-keyboard.service >/dev/null 2>&1 || :
fi
POSTIN
/bin/sh
if [ $1 -eq 1 ]; then
# Enable (but donĀ“t start) the units by default
/bin/systemctl enable system-setup-keyboard.service >/dev/null 2>&1 || :
fi
POSTUN
/bin/sh
if [ $1 -ge 1 ] ; then
# On upgrade, reload init system configuration if we changed unit files
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
# On upgrade, restart the daemon
/bin/systemctl try-restart system-setup-keyboard.service >/dev/null 2>&1 || :
fi