diff options
-rwxr-xr-x | build | 1 | ||||
-rw-r--r-- | linux-image.pkg/prerm | 12 |
2 files changed, 13 insertions, 0 deletions
@@ -25,6 +25,7 @@ install: build install -D src/System.map \ linux-sysmap.data/boot/System.map; \ mkdir -p linux-image.data/etc/kernel/postinst.d \ + linux-image.data/etc/kernel/prerm.d \ linux-image.data/etc/kernel/postrm.d; \ fi oh-autoinstall -T headers_install -- \ diff --git a/linux-image.pkg/prerm b/linux-image.pkg/prerm new file mode 100644 index 0000000..7bc5761 --- /dev/null +++ b/linux-image.pkg/prerm @@ -0,0 +1,12 @@ +#!/bin/sh + +first=true +for arg in "${@}"; do + if ${first}; then + set -- + first=false + fi + set -- "${@}" -a "${arg}" +done + +run-parts "${@}" /etc/kernel/prerm.d |