XYZ File Manager
Current Path:
/lib/kernel/install.d
lib
/
kernel
/
install.d
/
📁
..
📄
10-devicetree.install
(1.92 KB)
📄
20-grub.install
(7.98 KB)
📄
20-grubby.install
(1.86 KB)
📄
50-depmod.install
(1.96 KB)
📄
50-dracut.install
(1.85 KB)
📄
51-dracut-rescue.install
(3.79 KB)
📄
60-kdump.install
(791 B)
📄
90-loaderentry.install
(5.5 KB)
📄
90-uki-copy.install
(3.09 KB)
📄
92-crashkernel.install
(204 B)
📄
92-tuned.install
(1.62 KB)
📄
95-kernel-hooks.install
(675 B)
📄
99-grub-mkconfig.install
(1.02 KB)
Editing: 95-kernel-hooks.install
#!/usr/bin/bash if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then exit 0 fi COMMAND="$1" KERNEL_VERSION="$2" BOOT_DIR_ABS="$3" # If $BOOT_DIR_ABS exists, some other boot loader is active. [[ -d "$BOOT_DIR_ABS" ]] && exit 0 run_hooks() { local f local files="$1" for f in $files ; do [ -x "$f" ] || continue "$f" "$KERNEL_VERSION" "/boot/vmlinuz-$KERNEL_VERSION" done } case "$COMMAND" in add) run_hooks "/etc/kernel/postinst.d/*[^~] /etc/kernel/postinst.d/$KERNEL_VERSION/*[^~]" ;; remove) run_hooks "/etc/kernel/prerm.d/*[^~] /etc/kernel/prerm.d/$KERNEL_VERSION/*[^~]" ;; *) exit 0 esac
Upload File
Create Folder