summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2015-06-26 12:03:18 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-28 15:14:56 +0200
commit03d5e04dde97ed54893cbb93670cbfdfad6d39c7 (patch)
tree55d0552512efce8098e92c3b5b5add851f01d41d /package/base-files/src/etc
parent3962e752d82e9b6e7e41e5ed3a777566212ad02e (diff)
enable using udev for automatic module loading
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Diffstat (limited to 'package/base-files/src/etc')
-rwxr-xr-xpackage/base-files/src/etc/init.d/rcS11
1 files changed, 3 insertions, 8 deletions
diff --git a/package/base-files/src/etc/init.d/rcS b/package/base-files/src/etc/init.d/rcS
index 3e65d0967..3c46c976b 100755
--- a/package/base-files/src/etc/init.d/rcS
+++ b/package/base-files/src/etc/init.d/rcS
@@ -13,14 +13,6 @@ fi
# remount /dev with smaller size
mount -o remount,nosuid,size=128k,mode=0755 -t tmpfs mdev /dev
-# start mdev dynamic device node management
-echo >/dev/mdev.seq
-if [ -f /proc/sys/kernel/hotplug ];then
- echo "/sbin/mdev" >/proc/sys/kernel/hotplug
-fi
-# creates f.e. /dev/root
-mdev -s
-
# seed some random
cat /etc/.rnd >/dev/urandom 2>&1
@@ -42,6 +34,9 @@ mkdir -p /var/tmp
touch /var/log/lastlog
touch /var/log/wtmp
+# start dynamic device node management
+[ -f /etc/init.d/rcdev ] && . /etc/init.d/rcdev
+
HOSTNAME=
[[ -s /etc/hostname ]] && HOSTNAME=$(cat /etc/hostname)
HOSTNAME=${HOSTNAME%%.*}