add postinst
authorPhil Blundell <philb@gnu.org>
Sun, 4 Jul 2004 14:16:21 +0000 (14:16 +0000)
committerPhil Blundell <philb@gnu.org>
Sun, 4 Jul 2004 14:16:21 +0000 (14:16 +0000)
BKrev: 40e81135Fwd7PWH4FLSBaCroKGWJog

update-modules/update-modules_1.0.oe

index e69de29..1ea2f4e 100644 (file)
@@ -0,0 +1,18 @@
+DESCRIPTION = "Script to manage module configuration files"
+PACKAGE_ARCH = "all"
+PR = "r1"
+
+SRC_URI = "file://update-modules"
+
+pkg_postinst() {
+if [ "x$D" != "x" ]; then
+       exit 1
+fi
+update-modules
+}
+
+do_install() {
+       install -d ${D}${sbindir}
+       install ${WORKDIR}/update-modules ${D}${sbindir}
+}
+