diff options
author | Ermal <eri@pfsense.org> | 2010-12-10 12:48:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-10 12:48:58 +0000 |
commit | 9a77cafd7e400640a855f8f5112dd59c93af92a7 (patch) | |
tree | aa2ee03075b503a42890763f82aa2593a64fca8a /config/dnsblacklist | |
parent | 806db0240fa060b9ceb197fbc636be8bf916d95c (diff) | |
download | pfsense-packages-9a77cafd7e400640a855f8f5112dd59c93af92a7.tar.gz pfsense-packages-9a77cafd7e400640a855f8f5112dd59c93af92a7.tar.bz2 pfsense-packages-9a77cafd7e400640a855f8f5112dd59c93af92a7.zip |
Fix all this packages from their copy/paste legacy. Mostly protect poorly choosen function names with function_exists.
Diffstat (limited to 'config/dnsblacklist')
-rw-r--r-- | config/dnsblacklist/dnsblacklist.inc | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/config/dnsblacklist/dnsblacklist.inc b/config/dnsblacklist/dnsblacklist.inc index 4ec8e095..d9c7f364 100644 --- a/config/dnsblacklist/dnsblacklist.inc +++ b/config/dnsblacklist/dnsblacklist.inc @@ -31,21 +31,6 @@ POSSIBILITY OF SUCH DAMAGE. */ -function pkg_is_service_running($servicename) -{ - exec("/bin/ps ax | awk '{ print $5 }'", $psout); - array_shift($psout); - foreach($psout as $line) { - $ps[] = trim(array_pop(explode(' ', array_pop(explode('/', $line))))); - } - if(is_service_running($servicename, $ps) or is_process_running($servicename) ) { - return true; - } - else { - return false; - } -} - function byte_convert( $bytes ) { if ($bytes<=0) return '0 Byte'; @@ -102,10 +87,6 @@ function dnsblacklist_install_command() //$handle = popen("/usr/local/etc/rc.d/phpservice.sh start", "r"); //pclose($handle); - //if (pkg_is_service_running('phpservice')) { - //documentation purposes - //} - conf_mount_ro(); config_unlock(); } @@ -122,4 +103,4 @@ function dnsblacklist_deinstall_command() conf_mount_ro(); } -?>
\ No newline at end of file +?> |