@@ -118,6 +118,8 @@ DEFAULT_USE_busybox_mdev_sysvinit_start = "10"
RECIPE_FLAGS += "busybox_mdev_splashutils_progress busybox_mdev_splashutils_msg"
SPLASHUTILS_INITSCRIPTS:>USE_busybox_mdev += " busybox_mdev"
DEFAULT_USE_busybox_mdev_splashutils_msg = "\"Starting Mdev\""
+RECIPE_FLAGS += "busybox_mdev_dash_s"
+DEFAULT_USE_busybox_mdev_dash_s = "1"
RECIPE_FLAGS += "busybox_klogd \
busybox_klogd_sysvinit_start busybox_klogd_conlevel"
@@ -135,3 +135,29 @@ do_install () {
sysvinit_install_script ${SRCDIR}/busybox-httpd
fi
}
+
+do_install[postfuncs] += "${BUSYBOX_INSTALL_POSTFUNCS}"
+BUSYBOX_INSTALL_POSTFUNCS = ""
+BUSYBOX_INSTALL_POSTFUNCS:>USE_busybox_mdev = " do_install_fix_mdev"
+
+python do_install_fix_mdev () {
+ import os, fileinput
+ path = d.get("D")
+ os.chdir(path)
+ sysconfdir=d.get("sysconfdir")
+ parse_state = "do_nothing"
+ for line in fileinput.FileInput("." + sysconfdir + "/init.d/busybox-mdev", inplace=1):
+ if d.get("USE_busybox_mdev_dash_s"):
+ line=line.replace("#mdev_dash_s SECTION_START", "")
+ line=line.replace("#mdev_dash_s SECTION_END", "")
+ else:
+ if parse_state == "do_nothing":
+ if line.find("#mdev_dash_s SECTION_START") == 0:
+ parse_state = "delete_line"
+ line = ""
+ else:
+ if line.find("#mdev_dash_s SECTION_END") == 0:
+ parse_state = "do_nothing"
+ line = ""
+ print line,
+}
@@ -34,16 +34,20 @@ if mountpoint -q /dev/shm/; then
umount -l /dev/shm/
fi
+#mdev_dash_s SECTION_START
# Create tmpfs for /dev
echo "Creating tmpfs at /dev"
mount -t tmpfs tmpfs /dev -o size=64k,mode=0755
+#mdev_dash_s SECTION_END
# Register mdev as hotplug event helper
echo "$MDEV" > /proc/sys/kernel/hotplug
+#mdev_dash_s SECTION_START
# Populate /dev from /sys info
echo "Populating /dev using mdev"
$MDEV -s
+#mdev_dash_s SECTION_END
# Touch .udev to inform scripts that /dev needs no further setup
touch /dev/.udev