summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
Diffstat (limited to 'tmp')
-rwxr-xr-xtmp/post_upgrade_command2
-rwxr-xr-xtmp/post_upgrade_command.php5
2 files changed, 5 insertions, 2 deletions
diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command
index 8603a53..1db2799 100755
--- a/tmp/post_upgrade_command
+++ b/tmp/post_upgrade_command
@@ -43,7 +43,7 @@ echo " exit" >> $CVS_CO_DIR/root/.profile
echo "fi" >> $CVS_CO_DIR/root/.profile
# Now turn on or off serial console as needed
-/tmp/post_upgrade_command.php
+/tmp/post_upgrade_command.php $1
# Remove any previous MD5 sum files
rm -f /root/*.md5
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