#!/bin/sh #---------------------------------------------------------------------------------- # /var/install/bin/nfs-server-show-shares - show nfsserver server shares # # 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 etc. . /var/install/include/eislib configfile=/etc/config.d/nfs-server default_nfs4_exportpath=/srv/nfs4exports ### load configuration ### . ${configfile} clrhome if [ "${NFS_SERVER_SUPPORT_NFS4:-no}" = "yes" ] then mount | grep -q " ${default_nfs4_exportpath}/" if [ $? -eq 0 ] then mecho --info "NFSv4 mount binds" mecho mount | grep " ${default_nfs4_exportpath}/" mecho fi fi mecho --info "NFS server shares" echo /usr/sbin/exportfs -v echo anykey exit 0