X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=blobdiff_plain;f=meta-openvuplus%2Frecipes-core%2Finitscripts%2Finitscripts_1.0.bbappend;h=3033eb77bfa6d7d3e0070c00ec29b6601f7db950;hp=d434fe7e702d285c38c9f835c1afebfcc3e1af11;hb=aadbe439e1c67999547a1eb510f654d813bc67cf;hpb=9ee8333445ef0abb65e95279e899dc0f98f27bd7 diff --git a/meta-openvuplus/recipes-core/initscripts/initscripts_1.0.bbappend b/meta-openvuplus/recipes-core/initscripts/initscripts_1.0.bbappend index d434fe7..3033eb7 100644 --- a/meta-openvuplus/recipes-core/initscripts/initscripts_1.0.bbappend +++ b/meta-openvuplus/recipes-core/initscripts/initscripts_1.0.bbappend @@ -1,25 +1,34 @@ -PR .= "-vuplus0" +PR .= "-vuplus14" -#BOOTUP = "${@base_contains('PREFERRED_VERSION_linux-vuplus', '3.1.1', 'bootup_3.1', ' ', d)}" -#BOOTUP_vusolo2 = "${@base_contains('PREFERRED_VERSION_linux-vuplus', '3.3.6', 'bootup_3.1', ' ', d)}" -BOOTUP = "bootup_3.1" +FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" SRC_URI_append = " \ file://turnoff_power \ - file://hotplug_br \ file://make_mac_sector \ - file://${BOOTUP} \ " +SRC_URI_append_mipsel = " \ + file://hotplug_br \ +" + +do_configure_prepend() { + sed -i 's/tty0/ttyS0/' ${WORKDIR}/banner.sh +} + do_install_append() { rm ${D}${sysconfdir}/*.d/*save-rtc.sh install -d ${D}/usr/bin install -m 0755 ${WORKDIR}/turnoff_power ${D}/usr/bin - install -m 0755 ${WORKDIR}/hotplug_br ${D}/usr/bin - install -m 0755 ${WORKDIR}/make_mac_sector ${D}/usr/bin - install -m 0755 ${WORKDIR}/${BOOTUP} ${D}${sysconfdir}/init.d/bootup - ln -sf ../init.d/bootup ${D}${sysconfdir}/rcS.d/S05bootup + install -m 0755 ${WORKDIR}/make_mac_sector ${D}/usr/bin + + # rename umountnfs script because it should run before network is disabled + mv ${D}${sysconfdir}/rc0.d/S31umountnfs.sh ${D}${sysconfdir}/rc0.d/K31umountnfs.sh || /bin/true + mv ${D}${sysconfdir}/rc6.d/S31umountnfs.sh ${D}${sysconfdir}/rc6.d/K31umountnfs.sh || /bin/true +} + +do_install_append_mipsel() { + install -m 0755 ${WORKDIR}/hotplug_br ${D}/usr/bin } FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"