summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-10-05 11:23:49 -0400
committerjim-p <jimp@pfsense.org>2012-10-05 11:31:04 -0400
commit97f7a517dfa80e6c755c44b8705553eaeea01546 (patch)
tree606c4954b3e782b9666466a5dd4f42a68fc27292
parent902052bc7398436380ecc485de3042658bbcaf41 (diff)
downloadpfsense-97f7a517dfa80e6c755c44b8705553eaeea01546.zip
pfsense-97f7a517dfa80e6c755c44b8705553eaeea01546.tar.gz
Safety belt
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 83ab0c8..9a23e20 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1152,7 +1152,8 @@ function interface_bring_down($interface = "wan", $destroy = false) {
break;
}
- $old_router = trim(file_get_contents("{$g['tmp_path']}/{$realif}_router"));
+ if (file_exists("{$g['tmp_path']}/{$realif}_router"))
+ $old_router = trim(file_get_contents("{$g['tmp_path']}/{$realif}_router"));
// log_error("Checking for old router states: {$g['tmp_path']}/{$realif}_router = {$old_router}");
if (!empty($old_router)) {
log_error("Clearing states to old gateway {$old_router}.");
OpenPOWER on IntegriCloud