aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rwxr-xr-xinit9
1 files changed, 8 insertions, 1 deletions
diff --git a/init b/init
index eb0c939..429c87d 100755
--- a/init
+++ b/init
@@ -41,7 +41,14 @@ mount -t proc -o nodev,noexec,nosuid proc /proc
info "init starting up..."
mount -t devtmpfs -o nosuid,mode=0755 udev /dev
+
+# Prepare the /dev directory.
+#
ln -s /proc/self/fd /dev/fd
+ln -s /proc/self/fd/0 /dev/stdin
+ln -s /proc/self/fd/1 /dev/stdout
+ln -s /proc/self/fd/2 /dev/stderr
+
mkdir -p /dev/pts
mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
@@ -77,7 +84,7 @@ sensors-detect --auto
# Initialize KVM.
#
-#if ! (modprobe kvm_intel || modprobe kvm_amd); then
+#if ! (/sbin/modprobe kvm_intel || /sbin/modprobe kvm_amd); then
# error "no virtualization support available (is it disabled in BIOS?)"
#fi