GhostManSec
Server: Apache
System: Linux instant0279.server.com 2.6.32-696.3.1.el6.x86_64 #1 SMP Tue May 30 19:52:55 UTC 2017 x86_64
User: ptgoldenvisa (520)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/NetworkManager/dispatcher.d/05-netfs
#!/bin/sh

export LC_ALL=C

if [ "$2" = "down" ]; then
	/sbin/ip route ls | grep -q ^default || {
		[ -f /var/lock/subsys/netfs ] && /etc/rc.d/init.d/netfs stop || :
	} && { :; }
fi

if [ "$2" = "up" ]; then
	/sbin/ip -o route show dev "$1" | grep -q '^default' && {
		/sbin/chkconfig netfs && /etc/rc.d/init.d/netfs start || :
	} || { :; }
fi