diff options
author | phildd <ict.advisor@nepal.inf.org> | 2012-08-07 16:08:17 +0545 |
---|---|---|
committer | phildd <ict.advisor@nepal.inf.org> | 2012-08-07 16:08:17 +0545 |
commit | dd9e0bdb550c246133705d1e15c54e365b1bd3b5 (patch) | |
tree | 617c19807a89c23ed62c6274ad00d24b771201fe /etc | |
parent | b0c5dd87fd3574b90796c453803cea2d9f721f94 (diff) | |
download | pfsense-dd9e0bdb550c246133705d1e15c54e365b1bd3b5.zip pfsense-dd9e0bdb550c246133705d1e15c54e365b1bd3b5.tar.gz |
Change rcfileprefix to a constant
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.start_packages | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.start_packages b/etc/rc.start_packages index 80e7aaf..15f62e1 100755 --- a/etc/rc.start_packages +++ b/etc/rc.start_packages @@ -41,7 +41,7 @@ require_once("service-utils.inc"); log_error("Restarting/Starting all packages."); setup_library_paths(); -$rcfiles = glob("{$rcfileprefix}*.sh"); +$rcfiles = glob(RCFILEPREFIX . "*.sh"); if (!$rcfiles) $rcfiles = array(); else { @@ -55,7 +55,7 @@ if (is_array($config['installedpackages']['package'])) { echo " Starting package {$package['name']}..."; sync_package($package['name']); start_service($package['name']); - unset($rcfiles["{$rcfileprefix}{$package['name']}.sh"]); + unset($rcfiles[RCFILEPREFIX . $package['name'] . ".sh"]); echo "done.\n"; } } |