Project

General

Profile

« Previous | Next » 

Revision bcfe4ae5

Added by Ermal LUÇI over 14 years ago

Ticket #259 trim the \n from the command output and return only the numeric part of it.

View differences:

etc/inc/interfaces.inc
952 952
	case "dhcp":
953 953
		$pid = find_dhclient_process($realif);
954 954
		if($pid)
955
			mwexec("kill {$pid}");
955
			mwexec("/bin/kill {$pid}");
956 956
		sleep(1);
957 957
		unlink_if_exists("{$g['varetc_path']}/dhclient_{$interface}.conf");
958 958
		if(does_interface_exist("$realif")) {
......
2451 2451
	else
2452 2452
		$pid = 0;
2453 2453

  
2454
	return $pid;
2454
	return intval($pid);
2455 2455
}
2456 2456

  
2457 2457
function interface_configure($interface = "wan", $reloadall = false, $linkupevent = false) {

Also available in: Unified diff