From 03d5e04dde97ed54893cbb93670cbfdfad6d39c7 Mon Sep 17 00:00:00 2001 From: BALATON Zoltan Date: Fri, 26 Jun 2015 12:03:18 +0200 Subject: enable using udev for automatic module loading Signed-off-by: BALATON Zoltan --- package/base-files/src/etc/init.d/rcS | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'package/base-files/src/etc') 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%%.*} -- cgit v1.2.3