#! /bin/ash

if [ -f $HOME/.sysman.news ]; then
  for x in /var/news/* ; do
    if [ -f $x -a -r $x -a $x -nt $HOME/.sysman.news ]; then
      echo "News has changed since you last read it.  Type 'news' to read all about it."
      return
    fi
  done
else
  for x in /var/news/* ; do
    if [ -f $x -a -r $x ]; then
      echo "You have never read the news.  Type 'news' to read all about it."
      return
    fi
  done
fi
