#!/bin/sh # Aus.sh v2.1 (c) 15.4.96 by Andreas Ley (u) 8.1.97 # Script to allow system shutdown or reboot for anyone from the console PATH=/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc export PATH GRACEVALUE=3 LOGNAME=`logname` if test "${LOGNAME}" = "reboot"; then OPTIONS=-r TITLE="Reboot" QUESTION="Wollen sie wirklich den Rechner neustarten?" else OPTIONS=-h TITLE="Shutdown" QUESTION="Wollen sie wirklich den Rechner herunterfahren?" fi TTY=`tty` if test "${TTY}" != "/dev/lft0"; then echo "${TITLE} nur von der Console aus !!!" >&2 exit 1 fi trap "clear; exit 0" 2 3 5 14 15 trap "" 1 clear cat <