#!/bin/sh
##################################################################
#		R E B O O T E D
#		---------------
# Description:
#	An extra sahostinfo column. The column will contain date
#	when machine was last rebooted. To add this column, create
#	a local directory under .../sahostinfo and put this script
#	there. Also create a file called columns.dat there and add
#	following line to that file:
#
#		rebooted	Date of last reboot.
#
# Created By:
#	Lars Olsson and Lars Berntzon
#
##################################################################
OSNAME=`uname -s`
OS=`uname -r`
case "$OSNAME" in
SunOS)
    case $OS in
    4.*)
	last | grep reboot | head -1 | awk '{ print $3 " " $4 " " $5 " " $6 }'
    ;;
    5.*)
	last | grep reboot | head -1 | awk '{ print $4 " " $5 " " $6 " " $7 }'
    ;;
    esac
    ;;
*)
    last | grep reboot | head -1 | awk '{ print $4 " " $5 " " $6 " " $7 }'
esac
exit 0

#
# History of changes:
# rebooted,v
# Revision 1.1  1997/01/09 20:33:19  lasse
# Created
#
#
