summary refs log tree commit diff
path: root/contrib/rvnit-init
blob: 96786eab6cd326ae32c2e7202cb41159a60d7b81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
PATH=/usr/bin:/usr/sbin
export PATH

# control tty
exec </dev/tty1 >/dev/tty1 2>&1

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

ctrlaltdel soft
exec /bin/rvnit /etc/rvnit