summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-10-31 16:25:21 -0400
committerjim-p <jimp@pfsense.org>2011-10-31 16:25:21 -0400
commit196d00856dfb5b24a829b4d9555fac378b696c42 (patch)
treee8dbb78d11d0af3df9e67e1b6e254197c2b5f66a /tmp
parent9d99eb95c95524b018c2754132c66451bf7b19ac (diff)
downloadpfsense-196d00856dfb5b24a829b4d9555fac378b696c42.zip
pfsense-196d00856dfb5b24a829b4d9555fac378b696c42.tar.gz
Setup serial bits after upgrade on NanoBSD, too.
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