summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-11-09 23:34:41 (EST)
committer P. J. McDermott <pj@pehjota.net>2014-11-09 23:35:10 (EST)
commit04aad33ab10c7d50f54860a6ca022045369f2732 (patch)
treef1fb0fb859a46a749191e3687559259e48884813
parentd7587b1bd30780e37675ac5bc0c4acd8b79fce36 (diff)
linux-image: Prevent ENOENT warning in preinst
-rw-r--r--linux-image.pkg/preinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-image.pkg/preinst b/linux-image.pkg/preinst
index 2275fb7..881ea9b 100644
--- a/linux-image.pkg/preinst
+++ b/linux-image.pkg/preinst
@@ -1,5 +1,11 @@
#!/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