# PaCkAgE DaTaStReAm Bootmail 1 14 # end of header 070701000160db000081a40000000000000000000000013daf25bb000000a4000000550000001e00000000000000000000001100000005Bootmail/pkginfoPKG=Bootmail NAME=bootmail ARCH=sparc VERSION=1.0 CATEGORY=utility VENDOR=Harry Hoffman EMAIL=hhoffman@ip-solutions.net PSTAMP=Harry Hoffman BASEDIR=/ CLASSES=none 070701000160d4000081a40000000000000000000000013daf25bb000000d4000000550000001e00000000000000000000001000000005Bootmail/pkgmap: 1 14 1 f none /etc/init.d/bootmail 0700 root root 652 53088 1030669157 1 s none /etc/rc0.d/K30bootmail=/etc/init.d/bootmail 1 s none /etc/rc2.d/S90bootmail=/etc/init.d/bootmail 1 i pkginfo 164 13667 1034888635 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!070701000160db000081a40000000000000000000000013daf25bb000000a4000000550000001e00000000000000000000000800000005pkginfoPKG=Bootmail NAME=bootmail ARCH=sparc VERSION=1.0 CATEGORY=utility VENDOR=Harry Hoffman EMAIL=hhoffman@ip-solutions.net PSTAMP=Harry Hoffman BASEDIR=/ CLASSES=none 070701000160d4000081a40000000000000000000000013daf25bb000000d4000000550000001e00000000000000000000000700000005pkgmap: 1 14 1 f none /etc/init.d/bootmail 0700 root root 652 53088 1030669157 1 s none /etc/rc0.d/K30bootmail=/etc/init.d/bootmail 1 s none /etc/rc2.d/S90bootmail=/etc/init.d/bootmail 1 i pkginfo 164 13667 1034888635 0707010000dd98000041ed0000000000000000000000033daf25bb00000000000000550000001e00000000000000000000000500000005root0707010000ddb1000041ed0000000000000000000000033daf25bb00000000000000550000001e00000000000000000000000900000005root/etc07070100034217000041ed0000000000000000000000023daf25bb00000000000000550000001e00000000000000000000001000000005root/etc/init.d07070100034218000081e40000000000000000000000013d6ec3650000028c000000550000001e00000000000000000000001900000005root/etc/init.d/bootmail#!/bin/sh # # Send mail alert upon reboot of the system # # For Solaris # Link /etc/init.d to the following directories/files # /etc/rc2.d/S90bootmail # /etc/rc0.d/K30bootmail # # chkconfig: 12345 11 10 # description: Mail Alert for reboots case "$1" in 'start' | 'boot' | 'reboot' ) /bin/echo "`/bin/uname -n ` rebooted `date`" \ | /bin/mailx -s "`/bin/uname -n ` rebooted" 026.2518629@pager.itss.auckland.ac.nz ;; 'stop' | 'shutdown' | 'down') /bin/echo "`/bin/uname -n` going down `date`" \ | /bin/mailx -s "`/bin/uname -n` going down" 026.2518629@pager.itss.auckland.ac.nz ;; *) /bin/echo "Usage: /etc/init.d/bootmail { start | stop }" ;; esac 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!