summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/altboot/altboot_0.0.0.bb4
-rw-r--r--packages/altboot/altboot_0.0.5-rc3.bb (renamed from packages/altboot/altboot_0.0.5-rc2.bb)11
-rw-r--r--packages/altboot/files/altboot.func2
3 files changed, 17 insertions, 0 deletions
diff --git a/packages/altboot/altboot_0.0.0.bb b/packages/altboot/altboot_0.0.0.bb
index 54d260a76a..20245ef251 100644
--- a/packages/altboot/altboot_0.0.0.bb
+++ b/packages/altboot/altboot_0.0.0.bb
@@ -34,6 +34,10 @@ do_install() {
install -m 0644 ${WORKDIR}/altboot.rc/*.txt ${D}/etc/altboot.rc
}
+do_configure() {
+ cat ${WORKDIR}/init.altboot | sed "s/^VERSION=.*/VERSION=\"0.0.0 Developer Snapshot (${DATE})\"/" > ${WORKDIR}/init.altboot_
+ mv ${WORKDIR}/init.altboot_ ${WORKDIR}/init.altboot
+}
pkg_postinst() {
diff --git a/packages/altboot/altboot_0.0.5-rc2.bb b/packages/altboot/altboot_0.0.5-rc3.bb
index e4e20b5abe..9e975fbb96 100644
--- a/packages/altboot/altboot_0.0.5-rc2.bb
+++ b/packages/altboot/altboot_0.0.5-rc3.bb
@@ -57,6 +57,15 @@ do_install() {
install -m 0644 ${WORKDIR}/altboot/altboot.rc/*.txt ${D}/etc/altboot.rc
}
+######################################################################################
+
+do_configure() {
+ cat ${WORKDIR}/altboot/init.altboot | sed "s/^VERSION=.*/VERSION=\"${PV}\"/" > ${WORKDIR}/altboot/init.altboot_
+ mv ${WORKDIR}/altboot/init.altboot_ ${WORKDIR}/altboot/init.altboot
+}
+
+######################################################################################
+
pkg_postinst() {
update-alternatives --install /sbin/init init /sbin/init.altboot 55
}
@@ -90,6 +99,8 @@ pkg_postinst_spitz() {
fi
}
+######################################################################################
+
pkg_postrm() {
update-alternatives --remove init /sbin/init.altboot
}
diff --git a/packages/altboot/files/altboot.func b/packages/altboot/files/altboot.func
index 6dfad21374..1362268b83 100644
--- a/packages/altboot/files/altboot.func
+++ b/packages/altboot/files/altboot.func
@@ -360,6 +360,8 @@ mount_cf(){
# Give the SD and CF mounting some time. This is a must for SD
sleep 2
+
+ mount /media/cf
fi
}