__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/bin/sh
case "$DPKG_MAINTSCRIPT_PACKAGE::$DPKG_MAINTSCRIPT_NAME" in
linux-image-extra*::postrm)
exit 0;;
esac
KERNEL_UPGRADED=0
# Prefer showing the canonical-livepatch reboot message if one is required
if [ -f "/snap/bin/canonical-livepatch" ]; then
# k-u-r returns 1 if livepatch isn't enabled or if a reboot isn't required
kur_rc=$(/snap/bin/canonical-livepatch kernel-upgrade-required 2> /dev/null)
if [ $? -eq 0 ]; then
exit 0;
elif [ $? -eq 1 ]; then
# status returns 1 if livepatch isn't enabled
status_rc=$(/snap/bin/canonical-livepatch status 2> /dev/null)
if [ $? -eq 0 ]; then
KERNEL_UPGRADED=1
fi
fi
fi
# while a reboot isn't required for the new kernel it might be for another package
if [ $KERNEL_UPGRADED -eq 1 ]; then
if [ "$(echo $DPKG_MAINTSCRIPT_PACKAGE | cut -c1-5)" = "linux" ]; then
exit 0;
fi
fi
if [ -d /var/run ]; then
touch /var/run/reboot-required
if ! grep -q "^$DPKG_MAINTSCRIPT_PACKAGE$" /var/run/reboot-required.pkgs 2> /dev/null ; then
echo "$DPKG_MAINTSCRIPT_PACKAGE" >> /var/run/reboot-required.pkgs
fi
fi
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| initramfs-tools | File | 863 B | 0755 |
|
| unattended-upgrades | File | 1.14 KB | 0755 |
|
| update-notifier | File | 1.51 KB | 0755 |
|
| xx-update-initrd-links | File | 882 B | 0755 |
|
| zz-update-grub | File | 646 B | 0755 |
|