diff options
Diffstat (limited to 'meta/classes/rootfs_ipk.bbclass')
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index a37ab14df7..b0805dc329 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -106,9 +106,14 @@ delayed_postinsts () { | |||
106 | } | 106 | } |
107 | 107 | ||
108 | save_postinsts () { | 108 | save_postinsts () { |
109 | # Scripts need to be ordered when executed, this ensures numeric order | ||
110 | # If we ever run into needing more the 899 scripts, we'll have to | ||
111 | # change num to start with 1000. | ||
112 | num=100 | ||
109 | for p in $(delayed_postinsts); do | 113 | for p in $(delayed_postinsts); do |
110 | install -d ${IMAGE_ROOTFS}${sysconfdir}/ipk-postinsts | 114 | install -d ${IMAGE_ROOTFS}${sysconfdir}/ipk-postinsts |
111 | cp ${IMAGE_ROOTFS}${OPKGLIBDIR}/opkg/info/$p.postinst ${IMAGE_ROOTFS}${sysconfdir}/ipk-postinsts/$p | 115 | cp ${IMAGE_ROOTFS}${OPKGLIBDIR}/opkg/info/$p.postinst ${IMAGE_ROOTFS}${sysconfdir}/ipk-postinsts/$num-$p |
116 | num=`echo \$((num+1))` | ||
112 | done | 117 | done |
113 | } | 118 | } |
114 | 119 | ||