Package kernel-modules-lkrg-un-def: Скрипты

Post install

1
2
3
if [ $1 -eq 2 ]; then
	service lkrg condrestart
fi
Pre uninstall

1
2
3
4
5
6
7
8
# do not stop service if module was not build for currently running kernel
# do not unregister service: the other kernel flavour module still can be installed
if [ $1 -eq 0 ] && [ "$(uname -r)" = "5.15.60-un-def-alt1" ]; then
	service lkrg stop
fi

# {{{
# hacks to keep LKRG running to prevent it stopping during remove-old-kernel