diff options
author | jim-p <jimp@pfsense.org> | 2011-05-19 12:51:58 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-05-19 12:51:58 -0400 |
commit | dfa6dedad7a3741cc621669077304f44c2c79467 (patch) | |
tree | 17bc00bcc7603f8f14dc9e26fc582415ca9f0882 /etc | |
parent | a83d01d8d2427e7f302c03379f5d3d22c103a179 (diff) | |
download | pfsense-dfa6dedad7a3741cc621669077304f44c2c79467.zip pfsense-dfa6dedad7a3741cc621669077304f44c2c79467.tar.gz |
Fix array parsing of rc files. Resolves #1541
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.start_packages | 2 | ||||
-rwxr-xr-x | etc/rc.stop_packages | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.start_packages b/etc/rc.start_packages index ddd288d..4b78718 100755 --- a/etc/rc.start_packages +++ b/etc/rc.start_packages @@ -61,7 +61,7 @@ if (is_array($config['installedpackages']['package'])) { $shell = @popen("/bin/sh", "w"); if ($shell) { - foreach ($rcfiles as $rcfile) { + foreach ($rcfiles as $rcfile => $number) { echo " Starting {$rcfile}..."; fwrite($shell, "{$rcfile} start >>/tmp/bootup_messages 2>&1 &"); echo "done.\n"; diff --git a/etc/rc.stop_packages b/etc/rc.stop_packages index 181d2ea..95e77fd 100755 --- a/etc/rc.stop_packages +++ b/etc/rc.stop_packages @@ -60,7 +60,7 @@ if (is_array($config['installedpackages']['package'])) { $shell = @popen("/bin/sh", "w"); if ($shell) { - foreach ($rcfiles as $rcfile) { + foreach ($rcfiles as $rcfile => $number) { echo " Stoping {$rcfile}..."; fwrite($shell, "{$rcfile} stop >>/tmp/bootup_messages 2>&1"); echo "done.\n"; |