#!/bin/sh #---------------------------------------------------------------------------- # /var/install/bin/ntp-view-links - view NTP links # # Copyright (c) 2003-2004 Albert Steiner # Copyright (c) 2005-2006 The Eisfair Team, c/o Frank Meyer, frank(at)eisfair(dot)org # # Creation: 27.12.2003 as # Last Update: $Id$ # # 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. #---------------------------------------------------------------------------- # read eislib . /var/install/include/eislib log_file=/etc/ntp.links ### view log file ### clrhome mecho -info "Viewing \"$log_file\"" mecho if [ -f $log_file -a -s $log_file ] then export LESSCHARSET=latin1 /usr/bin/less +G $log_file else mecho -warn "Could not find desired file or file is empty, please try again later!" fi mecho anykey