From 196d00856dfb5b24a829b4d9555fac378b696c42 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 31 Oct 2011 16:25:21 -0400 Subject: Setup serial bits after upgrade on NanoBSD, too. --- tmp/post_upgrade_command | 2 +- tmp/post_upgrade_command.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tmp') 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) -- cgit v1.1