From 75f4d86867967da185914f94419c8646b7a3c4cb Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 1 Mar 2013 11:16:42 -0300 Subject: Remove *_defaultgwv6 also --- etc/inc/system.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 3bea41e..d895d2f 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -371,7 +371,7 @@ function system_routing_configure($interface = "") { $foundgwv6 = false; /* tack on all the hard defined gateways as well */ if (is_array($config['gateways']['gateway_item'])) { - mwexec("/bin/rm {$g['tmp_path']}/*_defaultgw", true); + mwexec("/bin/rm -f {$g['tmp_path']}/*_defaultgw {$g['tmp_path']}/*_defaultgwv6", true); foreach ($config['gateways']['gateway_item'] as $gateway) { if (isset($gateway['defaultgw'])) { if ($gateway['ipprotocol'] != "inet6" && (is_ipaddrv4($gateway['gateway']) || $gateway['gateway'] == "dynamic")) { -- cgit v1.1