diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 17:18:59 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 17:18:59 -0300 |
commit | e17fb7835de45d988b44d557e95ae686f9bd5c37 (patch) | |
tree | 5321441d9faed013bd754b685891d29c2c61aa33 /config/nut/nut.inc | |
parent | 65a85c16b76449f0296b3bd8b02c4aa1a90c590b (diff) | |
download | pfsense-packages-e17fb7835de45d988b44d557e95ae686f9bd5c37.tar.gz pfsense-packages-e17fb7835de45d988b44d557e95ae686f9bd5c37.tar.bz2 pfsense-packages-e17fb7835de45d988b44d557e95ae686f9bd5c37.zip |
Declare pfs_version as global on first usage
Diffstat (limited to 'config/nut/nut.inc')
-rw-r--r-- | config/nut/nut.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/nut/nut.inc b/config/nut/nut.inc index 9ba942ab..a186ab30 100644 --- a/config/nut/nut.inc +++ b/config/nut/nut.inc @@ -35,6 +35,7 @@ define('NUT_RCFILE', '/usr/local/etc/rc.d/nut.sh'); + global $pfs_version; $pfs_version = substr(trim(file_get_contents("/etc/version")),0,3); if ($pfs_version == "2.1" || $pfs_version == "2.2") { define('NUT_DIR', '/usr/pbi/nut-' . php_uname("m") . '/etc/nut'); |