Projet

Général

Profil

« Précédent | Suivant » 

Révision 96fcabaa

Ajouté par Renato Botelho il y a presque 10 ans

Replace some backticks by exec ans simplify commands

Voir les différences:

etc/inc/gwlb.inc
754 754
			mwexec("/sbin/route change {$inetfamily} default {$gateways_arr[$upgw]['gateway']}");
755 755
		}
756 756
	} else {
757
		$defaultgw = trim(`/sbin/route -n get -{$ipprotocol} default | /usr/bin/grep gateway | /usr/bin/sed 's/gateway://g'`, " \n");
757
		$defaultgw = trim(exec("/sbin/route -n get -{$ipprotocol} default | /usr/bin/awk '/gateway:/ {print $2}'"), " \n");
758 758
		if(is_ipaddrv6($gateways_arr[$dfltgwname]['gateway'])) {
759 759
			$inetfamily = "-inet6";
760 760
		} else {

Formats disponibles : Unified diff