summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-14 00:09:54 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-14 00:09:54 (EDT)
commit3c91e79f8b751ac7ee1414fa9fa6c40738a2d9ea (patch)
tree4b38e6f13fc20eef7b80364ad039824516a221ad
parent7170bb845036c826705531c656f518589b5aa800 (diff)
Add a kernel postinst hook
-rwxr-xr-xbuild3
-rw-r--r--kernel-postinst.sh3
-rw-r--r--lilo.pkg/files1
3 files changed, 7 insertions, 0 deletions
diff --git a/build b/build
index d027678..60cc68e 100755
--- a/build
+++ b/build
@@ -20,6 +20,9 @@ install: build
rm "dest/usr/sbin/$${script}"; \
rm "dest/usr/share/man/man8/$${script}.8"; \
done
+ # Install package hooks.
+ install -m 0755 -D ../kernel-postinst.sh \
+ dest/etc/kernel/postinst.d/99-lilo
oh-fixperms
oh-strip
oh-installfiles
diff --git a/kernel-postinst.sh b/kernel-postinst.sh
new file mode 100644
index 0000000..d0dba01
--- /dev/null
+++ b/kernel-postinst.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+install-lilo
diff --git a/lilo.pkg/files b/lilo.pkg/files
index 758a0f8..3907de2 100644
--- a/lilo.pkg/files
+++ b/lilo.pkg/files
@@ -1,2 +1,3 @@
/boot/*.bmp
+/etc/kernel/
/sbin/