]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_rpm.bbclass: rename postinst trigger script
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 3 Mar 2012 17:31:18 +0000 (17:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Mar 2012 11:44:45 +0000 (11:44 +0000)
Use 'run-postinsts' as trigger script name as it describes better the
intent of it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta/classes/rootfs_rpm.bbclass

index 48133f080b84da8e4613e87c805bef1c06d85332..9039b21a07da0210c94073c4dae93fb9ddd2cbf0 100644 (file)
@@ -112,7 +112,7 @@ EOF
        install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
        # Stop $i getting expanded below...
        i=\$i
-       cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure << EOF
+       cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF
 #!/bin/sh
 for i in /etc/rpm-postinsts/*; do
        echo "Running postinst $i..."
@@ -122,9 +122,9 @@ for i in /etc/rpm-postinsts/*; do
                echo "ERROR: postinst $i failed."
        fi
 done
-rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure
+rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
 EOF
-       chmod 0755 ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure
+       chmod 0755 ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
 
        install -d ${IMAGE_ROOTFS}/${sysconfdir}
        echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version