summaryrefslogtreecommitdiffstats
path: root/tmp/post_upgrade_command.php
diff options
context:
space:
mode:
Diffstat (limited to 'tmp/post_upgrade_command.php')
-rwxr-xr-xtmp/post_upgrade_command.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
index a188710..8ec4f73 100755
--- a/tmp/post_upgrade_command.php
+++ b/tmp/post_upgrade_command.php
@@ -18,7 +18,10 @@
write_config();
}
- setup_serial_port();
+ $newslicedir = "";
+ if ($ARGV[1] != "")
+ $newslicedir = '/tmp' . $ARGV[1];
+ setup_serial_port("upgrade", $newslicedir);
$files_to_process = split("\n", file_get_contents("/etc/pfSense.obsoletedfiles"));
foreach($files_to_process as $filename)
OpenPOWER on IntegriCloud