You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
385 B
14 lines
385 B
3 years ago
|
#!/bin/sh
|
||
|
|
||
|
subst s/'^\(1:2345:respawn.*\)$'/'#\1'/ /etc/inittab
|
||
|
cat <<EOF >> /etc/inittab
|
||
|
# yasr is always available on 1-st console;
|
||
|
yasr:2345:respawn:/bin/openvt -w -f -c 1 -- su -l kometa -c /usr/local/bin/yasr-with-linux-term
|
||
|
EOF
|
||
|
cat <<EOF > /usr/local/bin/yasr-with-linux-term
|
||
|
#!/bin/sh
|
||
|
TERM=linux /usr/bin/yasr
|
||
|
exit \$?
|
||
|
EOF
|
||
|
chmod 755 /usr/local/bin/yasr-with-linux-term
|