home *** CD-ROM | disk | FTP | other *** search
- :
- : "%W% %E% %U% ncoast!bsa %Z%"
- : "%Z% Copyright (C) 1986 by Brandon S. Allbery, All Rights Reserved %Z%"
- :
-
- UADIR="`sed -n 's/^@UAOWNER@:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\):[^:]*$/\1/p' < /etc/passwd`"
-
- msgnum=`cat $UADIR/motd/himotd`
- case "$msgnum" in
- [0-9]*) ;;
- *) echo "$msgnum" >&2
- exit 1
- esac
- msgnum=`expr $msgnum + 1`
- if echo "UNaXcess V0.04.03 (Pre-release) -- `@udate@`
- " > $UADIR/motd/$msgnum 2>/dev/null
- then ${EDITOR-vi} $UADIR/motd/$msgnum
- echo $msgnum > $UADIR/motd/himotd
- else echo "$0: could not make new bulletin $msgnum"
- exit 1
- fi
-