initscripts: umount networking filesystems before shutting of the network also for...
[opendreambox.git] / meta-opendreambox / recipes-core / initscripts / initscripts_1.0.bbappend
1 PR .= "-dream5"
2
3 SRC_URI += "file://mountrun.sh"
4
5 do_install_append() {
6         rm ${D}${sysconfdir}/*.d/*save-rtc.sh
7
8         install -m 0755 ${WORKDIR}/mountrun.sh ${D}${sysconfdir}/init.d
9         ln -s ../init.d/mountrun.sh ${D}${sysconfdir}/rcS.d/S02mountrun.sh
10
11         # rename umountnfs script because it should run before network is disabled
12         mv ${D}${sysconfdir}/rc0.d/S31umountnfs.sh ${D}${sysconfdir}/rc0.d/K31umountnfs.sh || /bin/true
13         mv ${D}${sysconfdir}/rc6.d/S31umountnfs.sh ${D}${sysconfdir}/rc6.d/K31umountnfs.sh || /bin/true
14 }
15
16 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"