#!/usr/bin/sh #---------------------------------------------------------------------------------- # /var/install/bin/nfsserver-show-mounts - show nfsserver server mounts # # Copyright (c) 2001-2024 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2004-08-11 jed # 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 . /var/install/include/check-eisfair-version configfile=/etc/config.d/nfsserver clrhome mecho --info "NFS server mounts" mecho # Set platform specific parameters case ${EISFAIR_SYSTEM} in eisfair-2) binaryPath=/sbin ${binaryPath}/showmount -a ;; *) binaryPath=/usr/sbin . ${configfile} if [ "${NFSSERVER_SUPPORT_NFS3}" = 'yes' ] then ${binaryPath}/showmount -a else mecho --warn "Mounts cannot be displayed because NFSSERVER_SUPPORT_NFS3='yes' has not been set!" fi ;; esac mecho anykey exit 0