#!/bin/sh #---------------------------------------------------------------------------------- # /var/install/bin/nfs-server-show-mounts - show nfsserver server mounts # # Creation: 2004-08-11 jed # Last Update: $Id$ # # Copyright (c) 2001-@@YEAR@@ the eisfair team, team(at)eisfair(dot)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. #---------------------------------------------------------------------------------- # read eislib . /var/install/include/eislib configfile=/etc/config.d/nfs-server clrhome mecho --info "NFS server: mounts on '$(hostname)'" echo . ${configfile} if [ "${NFS_SERVER_SUPPORT_NFS3:-no}" = "yes" ] then mecho --info 'NFS3 mounts' /usr/sbin/showmount -a --no-header else mecho --warn "Mounts cannot be displayed because NFS_SERVER_SUPPORT_NFS3='yes' has not been set!" fi echo anykey exit 0