opkg: only ping splash when splashfuncs are present
authorKoen Kooi <koen@openembedded.org>
Fri, 17 Apr 2009 16:43:53 +0000 (18:43 +0200)
committerKoen Kooi <koen@openembedded.org>
Fri, 17 Apr 2009 16:43:53 +0000 (18:43 +0200)
recipes/opkg/files/configure
recipes/opkg/opkg-nogpg-nocurl_svn.bb
recipes/opkg/opkg-nogpg_svn.bb
recipes/opkg/opkg.inc
recipes/opkg/opkg_svn.bb

index 1a8c314..318ccb1 100644 (file)
@@ -2,17 +2,22 @@
 # get splash funcs
 if [ -f /etc/default/splashfuncs ]; then
   . /etc/default/splashfuncs
-fi
 ## tell boot status to "pulsate" really long busy cycle here
 status_pulse || true
+fi
+
 # run configure in bg
 opkg-cl configure &
 PID=$!
-# while configure still running loop
-while test -d /proc/$PID; do
-# tick to splash so it doesn't time out
-  status_tick || true
-  sleep 1
-done
+
+if [ -f /etc/default/splashfuncs ]; then
+  # while configure still running loop
+  while test -d /proc/$PID; do
+  # tick to splash so it doesn't time out
+    status_tick || true
+    sleep 1
+  done
+fi
+
 # delete myself
 rm -f /etc/rcS.d/S98configure
index 6f8b446..60da447 100644 (file)
@@ -11,7 +11,7 @@ SRC_URI += " \
            file://opkg_wget_nogpg_03_fix_tmpdirs.patch;patch=1 \
            file://opkg_wget_nogpg_04_default_tmpdir.patch;patch=1 \
           "
-PR = "r5"
+PR = "r6"
 
 SRCREV = "${SRCREV_pn-opkg}"
 
index 641c7be..c0a4d4a 100644 (file)
@@ -3,7 +3,7 @@ require opkg_svn.bb
 DEPENDS = "curl"
 PROVIDES += "opkg"
 
-PR = "r11"
+PR = "r12"
 
 SRCREV = "${SRCREV_pn-opkg}"
 
index be82877..e986c8d 100644 (file)
@@ -7,10 +7,18 @@ PV = "0.1.6+svnr${SRCREV}"
 
 SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \
        file://opkg_unarchive.patch;patch=1;maxrev=201"
+
+SRC_URI += "file://configure"
+
 S = "${WORKDIR}/trunk"
 
 inherit autotools pkgconfig
 
+do_install_prepend() {
+  install -d ${D}${sysconfdir}/rcS.d
+  install -m 0755 ${WORKDIR}/configure ${D}${sysconfdir}/rcS.d/S98configure
+}
+
 do_stage() {
        autotools_stage_all
 }
index bc9af61..749fa1e 100644 (file)
@@ -1,6 +1,6 @@
 require opkg.inc
 
-PR = "r11"
+PR = "r12"
 
 PACKAGES =+ "libopkg-dev libopkg"
 
@@ -12,13 +12,6 @@ FILES_libopkg = "${libdir}/*.so.*"
 OPKG_INIT_POSITION = "98"
 OPKG_INIT_POSITION_slugos = "41"
 
-SRC_URI += "file://configure"
-
-do_install_prepend() {
-  install -d ${D}${sysconfdir}/rcS.d
-  install -m 0755 ${WORKDIR}/configure ${D}${sysconfdir}/rcS.d/S98configure
-}
-
 pkg_postinst_${PN} () {
   update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100
 }