Project

General

Profile

« Previous | Next » 

Revision 759ad1b9

Added by Doktor Notor over 9 years ago

interfaces.inc - use full paths to executables

View differences:

src/etc/inc/interfaces.inc
1621 1621
				interfaces_bring_up($port);
1622 1622
				pfSense_ngctl_attach(".", $port);
1623 1623
				/* Enable setautosrc to automatically change mac address if parent interface's changes */
1624
				mwexec("ngctl msg {$port}: setautosrc 1");
1624
				mwexec("/usr/sbin/ngctl msg {$port}: setautosrc 1");
1625 1625
				break;
1626 1626
			case "pptp":
1627 1627
			case "l2tp":
......
2005 2005
	/* we only support the 3gstats.php for huawei modems for now. Will add more later. */
2006 2006
	/* We should be able to launch the right version for each modem */
2007 2007
	/* We can also guess the mondev from the manufacturer */
2008
	exec("usbconfig | egrep -ie '(huawei)'", $usbmodemoutput);
2009
	mwexec("/bin/ps auxww|grep \"{$interface}\" |grep \"[3]gstats\" | awk '{print $2}' |xargs kill");
2008
	exec("/usr/sbin/usbconfig | /usr/bin/egrep -ie '(huawei)'", $usbmodemoutput);
2009
	mwexec("/bin/ps auxww | /usr/bin/grep \"{$interface}\" | /usr/bin/grep \"[3]gstats\" | /usr/bin/awk '{print $2}' | /usr/bin/xargs kill");
2010 2010
	foreach ($ports as $port) {
2011 2011
		if (preg_match("/huawei/i", implode("\n", $usbmodemoutput))) {
2012 2012
			$mondev = substr(basename($port), 0, -1);
......
4760 4760
 *   find_number_of_created_carp_interfaces: return the number of carp interfaces
4761 4761
 */
4762 4762
function find_number_of_created_carp_interfaces() {
4763
	return `/sbin/ifconfig | grep "carp:" | wc -l`;
4763
	return `/sbin/ifconfig | /usr/bin/grep "carp:" | /usr/bin/wc -l`;
4764 4764
}
4765 4765

  
4766 4766
/*

Also available in: Unified diff