committing changes in /etc made by "-bash"

Package changes:
This commit is contained in:
2022-07-05 13:32:58 +03:00
parent 7afc17c186
commit 019b8090a3
16 changed files with 3 additions and 225 deletions

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# We're passed the version of the kernel being removed
inst_kern=$1
if command -v dkms > /dev/null; then
dkms status -k "$inst_kern" 2>/dev/null | while IFS=",:/ " read -r name vers _ arch status; do
[ "$status" = "installed" ] || continue
echo "dkms: removing: $name $vers ($inst_kern) ($arch)" >&2
dkms remove -m "$name" -v "$vers" -k "$inst_kern" -a "$arch"
done
fi
rmdir --ignore-fail-on-non-empty \
"/lib/modules/$inst_kern/updates/dkms" \
"/lib/modules/$inst_kern/updates" 2>/dev/null
exit 0