summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-23 21:04:03 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-23 21:04:03 (EST)
commitf6e930a45f77f6ab3fa3c082003c32436f2c1df1 (patch)
tree7eb3189d1a990adec44c9e8cdc9d6bbe05f128b7
parent1fbfb8505b9e2cd015457bc25824c60d45dde552 (diff)
lilo.pkg/postinst: Only run if vmlinuz and vmlinuz.old exist
-rw-r--r--lilo.pkg/postinst5
1 files changed, 4 insertions, 1 deletions
diff --git a/lilo.pkg/postinst b/lilo.pkg/postinst
index 5a996aa..17552c6 100644
--- a/lilo.pkg/postinst
+++ b/lilo.pkg/postinst
@@ -1,4 +1,7 @@
#!/bin/sh
-install-lilo
+if [ -e /boot/vmlinuz ] && [ -e /boot/vmlinuz.old ]; then
+ /sbin/install-lilo
+fi
+
exit 0