mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
Add udev initilisation
We have a udev package, but no means to start udev at boot. This change adds the necessary startup in /init, and adds the required /sbin/udevsettle to the udev installed files Signed-off-by: Jeremy Kerr <jk@ozlabs.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9412 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -14,6 +14,20 @@ elif [ -x /sbin/hotplug2 ]; then
|
||||
mkdir /dev/pts
|
||||
mkdir /dev/shm
|
||||
/sbin/hotplug2 --no-persistent --coldplug --max_children 1
|
||||
|
||||
elif [ -x /sbin/udevd ]; then
|
||||
mount -n -t tmpfs -o mode=0755 udev /dev
|
||||
mkdir /dev/pts
|
||||
mkdir /dev/shm
|
||||
|
||||
if [ -e /proc/sys/kernel/hotplug ]; then
|
||||
echo "" > /proc/sys/kernel/hotplug
|
||||
fi
|
||||
|
||||
/sbin/udevd --daemon
|
||||
/sbin/udevtrigger
|
||||
/sbin/udevsettle
|
||||
|
||||
fi
|
||||
|
||||
mount none /dev/pts -t devpts
|
||||
|
||||
Reference in New Issue
Block a user