summaryrefslogtreecommitdiffstats
path: root/linux-image.pkg/postinst
diff options
context:
space:
mode:
authorP. 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)
commite54e46fa79cabb2f6bb1308a0ebfb873ddf28f9b (patch)
tree4172510d52e2c4ec7aae474edacfe418b8ee295c /linux-image.pkg/postinst
parent7859f5ca6744ba3393e9478c7906bf3f0796136e (diff)
linux-image: Run postinst and postrm hooks
Diffstat (limited to 'linux-image.pkg/postinst')
-rw-r--r--linux-image.pkg/postinst12
1 files changed, 12 insertions, 0 deletions
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