diff options
author | jim-p <jimp@pfsense.org> | 2011-10-31 16:25:21 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-10-31 16:25:21 -0400 |
commit | 196d00856dfb5b24a829b4d9555fac378b696c42 (patch) | |
tree | e8dbb78d11d0af3df9e67e1b6e254197c2b5f66a /tmp | |
parent | 9d99eb95c95524b018c2754132c66451bf7b19ac (diff) | |
download | pfsense-196d00856dfb5b24a829b4d9555fac378b696c42.zip pfsense-196d00856dfb5b24a829b4d9555fac378b696c42.tar.gz |
Setup serial bits after upgrade on NanoBSD, too.
Diffstat (limited to 'tmp')
-rwxr-xr-x | tmp/post_upgrade_command | 2 | ||||
-rwxr-xr-x | tmp/post_upgrade_command.php | 5 |
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) |