package-pipelines-miscellan.../linux-diversion-ath-regd-optional/debian/postinst

18 lines
432 B
Text
Raw Normal View History

2023-12-05 23:40:22 +01:00
#!/bin/sh
# Based on linux-image-5.10.0-11-amd64 postinst
set -e
if [ "$1" != configure ]; then
exit 0
fi
depmod __DEB_VERSION__-amd64
if [ -d /var/run ]; then
touch /var/run/reboot-required
if ! grep -q "^linux-diversion-__DEB_VERSION__-ath-regd-optional$" /var/run/reboot-required.pkgs 2> /dev/null ; then
echo "linux-diversion-__DEB_VERSION__-ath-regd-optional" >> /var/run/reboot-required.pkgs
fi
fi