/bin/ash
}
-runmdev() {
+mount_devfs () {
# Use devtmpfs if enabled in kernel,
# else tmpfs. Always run mdev just in case
devfs=tmpfs
# http://git.busybox.net/busybox/plain/docs/mdev.txt
mkdir -m 0755 /dev/pts
mount -t devpts -o gid=5,mode=0620 devpts /dev/pts || bad_msg "Failed to mount /dev/pts"
- mdev -s || bad_msg "Failed to receive dynamic updates from mdev"
}
test_success() {
done
}
-start_dev_mgr() {
- if [ "${KV_2_6_OR_GREATER}" ]
- then
- cd /sys
- good_msg 'Activating mdev'
- runmdev
- cd /
- fi
-}
-
cmdline_hwopts() {
# Scan CMDLINE for any "doscsi" or "noscsi"-type arguments
local FOUND
cmdline_hwopts
+# Mount devfs
+mount_devfs
+
# Mount sysfs
mount_sysfs
# Setup hotplugging for firmware loading
setup_hotplug
+# Start mdev
+if [ "${KV_2_6_OR_GREATER}" ]
+then
+ cd /sys
+ good_msg 'Activating mdev'
+ mdev -s || bad_msg "Failed to receive dynamic updates from mdev"
+ cd /
+fi
+
# Load modules listed in MY_HWOPTS if /lib/modules exists for the running kernel
if [ -z "${DO_modules}" ]
then
# Setup slow USB bits
setup_slowusb
-# Start device manager
-start_dev_mgr
-
# if doslowusb is passed, pause other 10 seconds here, after mdev load
[ "${DO_slowusb}" ] && sleep 10