diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-25 21:21:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-25 21:21:14 +0000 |
commit | a7dc4fe50523ca1a78f6e92e336fd3ab35e71ee6 (patch) | |
tree | 43c23d34e5d5971444a85cd28eb1ec9eb0ec28cd /etc | |
parent | 4aa7dd556b27adf11814b12c7dd3dff307e04584 (diff) | |
download | pfsense-a7dc4fe50523ca1a78f6e92e336fd3ab35e71ee6.zip pfsense-a7dc4fe50523ca1a78f6e92e336fd3ab35e71ee6.tar.gz |
Wack the terminal good after reload interfaces. This is a ugly hack but does cleanup all the known bugs in the console after a reload_interfaces() call
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index fbf4425..8c73393 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1456,14 +1456,28 @@ function reload_interfaces_sync() { } function reset_terminals() { - $tokill = array(split("\n", `ps awwwux | grep initial | grep -v grep | cut -d" " -f7`)); + $tokill = split("\n", `ps awwwux | grep sh | grep initial | grep -v grep | cut -d" " -f6`); foreach ($tokill as $killme) { - mwexec("/bin/kill $killme"); + echo "Killing $killme <p>"; + mwexec("/bin/kill -9 $killme"); } - $tokill = array(split("\n", `ps awwwux | grep rc.banner | grep -v grep | cut -d" " -f5`)); + $tokill = split("\n", `ps awwwux | grep rc.banner | grep -v grep | cut -d" " -f5`); foreach ($tokill as $killme) { - mwexec("/bin/kill $killme"); + echo "Killing $killme <p>"; + mwexec("/bin/kill -9 $killme"); } + $tokill = split("\n", `ps awwwux | grep tcsh | grep -v grep | cut -d" " -f5`); + foreach ($tokill as $killme) { + echo "Killing $killme <p>"; + mwexec("/bin/kill -9 $killme"); + } + $tokill = split("\n", `ps awwwux | grep "(sh)" | grep -v grep | cut -d" " -f5`); + foreach ($tokill as $killme) { + echo "Killing $killme <p>"; + mwexec("/bin/kill -9 $killme"); + } + + } /****f* pfsense-utils/reload_all |