summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-06 15:23:00 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-06 15:23:00 +0000
commite0b4e47f674ed192c6e0316643581061c9de88b0 (patch)
tree64edf244168dbbb03deb086c10deefd56510e9a7 /etc
parent48e7db914836bddac9b2cbb190ef6519973381f8 (diff)
downloadpfsense-e0b4e47f674ed192c6e0316643581061c9de88b0.zip
pfsense-e0b4e47f674ed192c6e0316643581061c9de88b0.tar.gz
Surpress kill output.
Do not toggle polling on vlan interfaces
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index f66dd56..a0bac90 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -201,6 +201,9 @@ function system_routing_configure() {
if(isset($config['staticroutes']['enablefastrouting']))
mwexec("/sbin/sysctl net.inet.ip.fastforwarding=1");
+ exec("/sbin/netstat -rn", $route_arr, $retval);
+ $route_str = implode("\n", $route_arr);
+
/* clear out old routes, if necessary */
if (file_exists("{$g['vardb_path']}/routes.db")) {
$fd = fopen("{$g['vardb_path']}/routes.db", "r");
@@ -210,7 +213,7 @@ function system_routing_configure() {
}
while (!feof($fd)) {
$oldrt = fgets($fd);
- if ($oldrt)
+ if (preg_match("/{$oldrt}/", $route_str))
mwexec("/sbin/route delete " . escapeshellarg($oldrt));
}
fclose($fd);
@@ -932,7 +935,7 @@ function system_ntp_configure() {
/* if openntpd is running, kill it */
while(is_process_running("ntpd")) {
- exec("/usr/bin/killall ntpd", true);
+ mwexec("/usr/bin/killall ntpd", true);
sleep(3);
}
@@ -1145,7 +1148,7 @@ function enable_watchdog() {
}
if($install_watchdog == true) {
if(is_process_running("watchdogd"))
- exec("/usr/bin/killall watchdogd", true);
+ mwexec("/usr/bin/killall watchdogd", true);
exec("/usr/sbin/watchdogd");
}
}
OpenPOWER on IntegriCloud