File nfs of Package NetworkManager.4192

#! /bin/sh
#
# nfs - start NFS in response to interface change
#
# Robert Love
# Bastian Holst <bholst@lusku.de>

case "$2" in
	up|dhcp4-change|dhcp6-change)
		# 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