#!/bin/sh # #check if user is logged on the console # if [ `who am i |awk '{print $2}'` = "console" ] thenBack to the main page
echo echo "Okay, you are on the console so we can continue" echo else echo echo "Sorry, this script requires that you work from the console " echo fi exit 0