#!/bin/sh -efu if [ -z "${ALTERATOR_DATADIR-}" ]; then echo "This script must be run from the second TTY!" >&2 echo "Switch to tty2 (press Alt-F2) and try again..." >&2 exit 1 fi rundir="${0%/*}" BusID="$(lspci -d ::0300 |awk '{print $1;}' |head -n1 |sed 's/[\:\.]/ /g' | while read a b c; do printf "%d:%d:%d\n" $a $b $c; done)" cat > /etc/X11/xorg.conf.d/10-monitor.conf < /tmp/try-install </dev/null ||: xinit /usr/sbin/alterator-install2 -- vt7 -dpms -ac \ -nolisten tcp -logfile /tmp/x11.log >> /tmp/install2.log \ 2>&1 || exit \$? /usr/sbin/postinstall ||: echo s > /proc/sysrq-trigger echo u > /proc/sysrq-trigger echo b > /proc/sysrq-trigger EOF chmod +x /tmp/try-install exec /tmp/try-install