summaryrefslogtreecommitdiffstats
path: root/linux-image.pkg/preinst
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-28 18:30:27 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-28 18:30:27 (EDT)
commit787c4c6c3ce036bf823b1d953b6a20ae27c5249f (patch)
treecff033ada02e9ab43183a7bc08d6fa2b1d026bcf /linux-image.pkg/preinst
linux-libre 3.10.95~gnu-1
I'm taking the opportunity to start fresh because the original repository is weighed down by an upstream source archive in contained long ago. See the linux-libre package repository for the full Git history.
Diffstat (limited to 'linux-image.pkg/preinst')
-rw-r--r--linux-image.pkg/preinst18
1 files changed, 18 insertions, 0 deletions
diff --git a/linux-image.pkg/preinst b/linux-image.pkg/preinst
new file mode 100644
index 0000000..881ea9b
--- /dev/null
+++ b/linux-image.pkg/preinst
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Prevent the following ENOENT warning message on new installations:
+# run-parts: /etc/kernel/preinst.d: No such file or directory
+if ! [ -d /etc/kernel/preinst.d ]; then
+ exit 0
+fi
+
+first=true
+for arg in "${@}"; do
+ if ${first}; then
+ set --
+ first=false
+ fi
+ set -- "${@}" -a "${arg}"
+done
+
+run-parts "${@}" /etc/kernel/preinst.d