REDROOM
PHP 8.5.2
Path:
Logout
Edit File
Size: 1.14 KB
Close
/etc/kernel/postinst.d/unattended-upgrades
Text
Base64
#!/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
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
initramfs-tools
863 B
lrwxr-xr-x
2025-02-07 09:47:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
unattended-upgrades
1.14 KB
lrwxr-xr-x
2024-02-12 17:50:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
update-notifier
1.51 KB
lrwxr-xr-x
2025-04-02 09:15:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
xx-update-initrd-links
882 B
lrwxr-xr-x
2024-11-13 12:47:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
zz-shim
372 B
lrwxr-xr-x
2024-01-24 09:14:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
zz-update-grub
646 B
lrwxr-xr-x
2025-03-17 11:36:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).