summaryrefslogtreecommitdiff
path: root/meta-openvuplus/recipes-core/initscripts/initscripts_1.0.bbappend
blob: 9474af7c4d867f3502430b17befcf1f5ed529f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PR .= "-vuplus11"

FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"

SRC_URI_append = " \
	file://turnoff_power \
	file://hotplug_br \
	file://make_mac_sector \
"

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

	# 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
}

FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"

PACKAGE_ARCH = "${MACHINE_ARCH}"