18 lines
432 B
Text
18 lines
432 B
Text
|
#!/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
|