nuke mdev and replace it with hotplug2 :)
[openwrt-10.03/.git] / package / base-files / files / etc / init.d / boot
index c58365234749a848db67500a6742440895a018fd..ed5e7d8ba56772a0a220bbbe747cd9cf28ec5115 100755 (executable)
@@ -15,12 +15,16 @@ start() {
        mkdir -p /var/lock
        touch /var/log/wtmp
        touch /var/log/lastlog
+       ln -s /tmp/resolv.conf.auto /tmp/resolv.conf
        [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
        
        # manually trigger hotplug before loading modules
        for iface in $(awk -F: '/:/ {print $1}' /proc/net/dev); do
-               /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug net
+               /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug-call net
        done
-       
+
+       /sbin/hotplug2 --persistent &
+       echo /sbin/hotplug-call > /proc/sys/kernel/hotplug
+
        load_modules /etc/modules.d/*
 }