summary refs log tree commit diff
path: root/contrib/rvnit-init
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/rvnit-init')
-rwxr-xr-xcontrib/rvnit-init7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/rvnit-init b/contrib/rvnit-init
index 34b54b6..96786ea 100755
--- a/contrib/rvnit-init
+++ b/contrib/rvnit-init
@@ -5,7 +5,8 @@ export PATH
 # control tty
 exec </dev/tty1 >/dev/tty1 2>&1
 
-mountpoint -q /tmp || mount /tmp
+mountpoint -q /proc || mount -o nosuid,noexec,nodev -t proc proc /proc
+mountpoint -q /run || mount -o mode=0755,nosuid,nodev -t tmpfs run /run
 
-cd /etc/rvnit
-exec /bin/rvnit
+ctrlaltdel soft
+exec /bin/rvnit /etc/rvnit