diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-07-14 00:51:35 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-07-14 00:51:35 (EDT) |
commit | e54e46fa79cabb2f6bb1308a0ebfb873ddf28f9b (patch) | |
tree | 4172510d52e2c4ec7aae474edacfe418b8ee295c | |
parent | 7859f5ca6744ba3393e9478c7906bf3f0796136e (diff) |
linux-image: Run postinst and postrm hooks
-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 |