File nfs of Package NetworkManager

#! /bin/sh
#
# nfs - start NFS in response to interface change
#
# Robert Love

case "$2" in
	up)
		# Check with systemd if nfs service is enabled
		if /usr/bin/systemctl is-enabled nfs.service >/dev/null 2>&1; then
			/bin/mount -alt nfs,nfs4
		fi
		;;
	down)
		/bin/umount -alt nfs,nfs4
		exit 0
		;;
	*)
		exit 0
		;;
esac
openSUSE Build Service is sponsored by