summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-01-31 15:30:06 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-31 15:30:06 +0100
commit8b96e301c638ee8a434cbdb2599d8ec4ed124eb5 (patch)
tree02414186e68912deb89682f4ee935d55697a41fd
parent6e27dc61a42f04237334d47fe6ae4a92384b9854 (diff)
revert change of /dev/console redirection
-rwxr-xr-xpackage/base-files/extra/init3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/base-files/extra/init b/package/base-files/extra/init
index eabf45b5b..618547693 100755
--- a/package/base-files/extra/init
+++ b/package/base-files/extra/init
@@ -11,6 +11,7 @@ mount -o nosuid,nodev,noexec -t sysfs sysfs /sys
mount -o nosuid,size=128k,mode=0755 -t tmpfs mdev /dev
mkdir /dev/pts /dev/shm
mount -o nosuid,noexec -t devpts devpts /dev/pts
+exec 0<>/dev/console >&0 2>&0
echo >/dev/mdev.seq
echo "/sbin/mdev" >/proc/sys/kernel/hotplug
mdev -s
@@ -18,6 +19,4 @@ mount -o remount,rw /
cat /etc/.rnd >/dev/urandom 2>&1
[ -f /etc/fstab ] && mount -a
[ -x /sbin/cfgfs ] && { cfgfs setup; mount -o remount,ro /;}
-echo "Starting system init ..."
-exec 0<>/dev/console >&0 2>&0
exec /sbin/init