aboutsummaryrefslogtreecommitdiff
path: root/package/udev
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <jacmet@sunsite.dk>2008-12-08 13:41:59 +0000
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2008-12-08 13:41:59 +0000
commita222edcbcf2599e4117f4dd32af0ca4b2c4193d2 (patch)
tree82f10bd7b607a7cab4c66b41004ff8c78acdfac1 /package/udev
parenta8b501baee1d9d57de60519097c8303e987d8a7b (diff)
downloadbuildroot-a222edcbcf2599e4117f4dd32af0ca4b2c4193d2.tar.gz
buildroot-a222edcbcf2599e4117f4dd32af0ca4b2c4193d2.tar.bz2
package/udev: create base device nodes after mounting a new /dev
Currently, udev won't start for me, as we've just mounted a new /dev, which is completely empty, and udevd requires a /dev/null. This change manually creates the three base device nodes (zero, null and console) so that udev can start. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'package/udev')
-rwxr-xr-xpackage/udev/S10udev3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/udev/S10udev b/package/udev/S10udev
index 5b663a00db..6418f63cbc 100755
--- a/package/udev/S10udev
+++ b/package/udev/S10udev
@@ -58,6 +58,9 @@ case "$1" in
exit 1
mkdir $udev_root/pts $udev_root/shm
+ mknod -m 0666 /dev/null c 1 3
+ mknod -m 0666 /dev/zero c 1 5
+ mknod -m 0600 /dev/console c 5 1
# populate /dev (normally)
echo -n "Populating $udev_root using udev: "