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.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
index 309be16..44c5006 100755
--- a/tmp/post_upgrade_command.php
+++ b/tmp/post_upgrade_command.php
@@ -13,14 +13,15 @@
system("pfSsh.php playback gitsync " . escapeshellarg($config['system']['gitsync']['branch']) . " --upgrading");
}
- if($g['platform'] == "embedded" || $g['enableserial_force']) {
+ $newslicedir = "";
+ if ($argv[1] != "")
+ $newslicedir = '/tmp/' . $argv[1];
+
+ if($g['platform'] == "embedded" || $g['enableserial_force'] || file_exists("{$newslicedir}/enableserial_force")) {
$config['system']['enableserial'] = true;
write_config();
}
- $newslicedir = "";
- if ($argv[1] != "")
- $newslicedir = '/tmp/' . $argv[1];
system("echo \"Adding serial port settings ({$newslicedir})...\" >> /conf/upgrade_log.txt");
setup_serial_port("upgrade", $newslicedir);
OpenPOWER on IntegriCloud