pkg-nvidia-pikaos-kernel-mo.../linux-nvidia-modules/debian/postinst

18 lines
673 B
Plaintext
Raw Normal View History

2023-09-02 19:01:03 +02:00
#! /bin/sh
2024-02-01 22:03:50 +01:00
# Reset kernel modules
rm -rfv /usr/lib/modules/*/modules.alias || true
rm -rfv /usr/lib/modules/*/modules.builtin.alias.bin || true
rm -rfv /usr/lib/modules/*/modules.dep || true
rm -rfv /usr/lib/modules/*/modules.devname || true
rm -rfv /usr/lib/modules/*/modules.symbols || true
rm -rfv /usr/lib/modules/*/modules.alias.bin || true
rm -rfv /usr/lib/modules/*/modules.builtin.bin || true
rm -rfv /usr/lib/modules/*/modules.dep.bin || true
rm -rfv /usr/lib/modules/*/modules.softdep || true
rm -rfv /usr/lib/modules/*/modules.symbols.bin || true
# Regenerate kernel module configs
depmod -a
# Update initramfs with new module config
2023-09-02 20:28:08 +02:00
update-initramfs -c -k all