From e54e46fa79cabb2f6bb1308a0ebfb873ddf28f9b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 14 Jul 2014 00:51:35 -0400 Subject: linux-image: Run postinst and postrm hooks --- (limited to 'linux-image.pkg') 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 -- cgit v0.9.1