[oe] [PATCH] mdev: mdev.sh: permit serial console login and correct init runlevel
Denis 'Gnutoo' Carikli
GNUtoo at no-log.org
Tue Jul 14 23:08:12 UTC 2009
create /dev/console and /dev/null in order to permit someone to login via serial console
and to be able to go to others runlevel than runlevel S : for instance runlevel 2345
diff --git a/recipes/mdev/mdev-1.2.1/mdev.sh b/recipes/mdev/mdev-1.2.1/mdev.sh
index 9744322..b4bb28c 100755
--- a/recipes/mdev/mdev-1.2.1/mdev.sh
+++ b/recipes/mdev/mdev-1.2.1/mdev.sh
@@ -66,4 +66,12 @@ ln -sf /proc/self/fd/2 /dev/stderr
ln -sf /proc/kcore /dev/core
ln -sf /proc/asound/oss/sndstat /dev/sndstat
+if [ ! -e /dev/console ]; then
+mknod /dev/console c 5 1
+fi
+
+if [ ! -e /dev/null ]; then
+mknod /dev/null c 1 3
+fi
+
exit 0
--
1.6.0.6
More information about the Openembedded-devel
mailing list