#! /bin/sh
#----------------------------------------------------------------------------
# /var/install/bin/dns-status - get dns status
#
# Creation:     28.04.2002  fm
# Last Update:  $Id$
#
# Copyright (c) 2002-2005 Frank Meyer <frank@eisfair.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#----------------------------------------------------------------------------
killall -0 ens 2>/dev/null  # -0 is only a check

if [ $? = 0 ]
then
    echo "DNS server is running"
else
    echo "DNS server is not running"
fi
echo
/var/install/bin/anykey