diff options
-rwxr-xr-x | build | 2 | ||||
-rw-r--r-- | linux-image.pkg/postinst | 12 | ||||
-rw-r--r-- | linux-image.pkg/postrm | 12 |
3 files changed, 26 insertions, 0 deletions
@@ -22,6 +22,8 @@ install: linux-image.data/boot/$${img_dest}; \ 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/postrm.d; \ fi oh-autoinstall -T headers_install -- INSTALL_HDR_PATH="$${PWD}/dest/usr" find dest/usr/include \ diff --git a/linux-image.pkg/postinst b/linux-image.pkg/postinst new file mode 100644 index 0000000..9b615b4 --- /dev/null +++ b/linux-image.pkg/postinst @@ -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/postinst.d diff --git a/linux-image.pkg/postrm b/linux-image.pkg/postrm new file mode 100644 index 0000000..ca0e0cb --- /dev/null +++ b/linux-image.pkg/postrm @@ -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/postrm.d |