aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/freenas/pkg/freenas.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/freenas/pkg/freenas.inc b/packages/freenas/pkg/freenas.inc
index 52418e8a..8c317bf5 100644
--- a/packages/freenas/pkg/freenas.inc
+++ b/packages/freenas/pkg/freenas.inc
@@ -52,10 +52,10 @@ function oninstall_copy_kernel_binaries($action = "install") {
"target" => "/boot/kernel/ntfs.ko");
if ($action == "install") {
- while (list($source, $target) = each($binaries)) {
+ while (list(, $val) = each($binaries)) {
$static_output .= "FreeNAS: Moving binary file... ";
update_output_window($static_output);
- rename($source, $target);
+ rename($val['source'], $val['target']);
$static_output .= "done.\n";
update_output_window($static_output);
}
@@ -148,11 +148,11 @@ function oninstall_copy_misc_binaries($action = "install") {
"target" => "/usr/sbin/rpcbind");
if ($action == "install") {
- while (list($source, $target) = each($binaries)) {
+ while (list(, $val) = each($binaries)) {
mwexec("install -s {$source} ${target}");
}
} else if ($action == "deinstall") {
- while (list($source, $target) = each($binaries)) {
+ while (list($val['source'], $val['target']) = each($binaries)) {
unlink($target);
}
}