summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-10-04 22:52:32 +0000
committerErmal Luçi <eri@pfsense.org>2008-10-04 22:52:32 +0000
commit723e16b89c0096d4381f03f0127baea394efddfc (patch)
treed3f0652c33ef3a926f89aebc4c991bc2bff06075
parent8b12711717deae8e9351d3cf0d3b27f24c21e1ec (diff)
downloadpfsense-723e16b89c0096d4381f03f0127baea394efddfc.zip
pfsense-723e16b89c0096d4381f03f0127baea394efddfc.tar.gz
Actually take a shorter route at saving the gateway.
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 3cf67e1..cc27250 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1224,7 +1224,7 @@ function interface_configure($interface = "wan") {
}
if (is_ipaddr($wancfg['gateway']))
- system("echo " . $wancfg['gateway'] . " > /tmp/" . $realif . "_router");
+ file_put_contents("/tmp/{$realif}_router", $wancfg['gateway']);
}
OpenPOWER on IntegriCloud