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.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
new file mode 100755
index 0000000..7f5f627
--- /dev/null
+++ b/tmp/post_upgrade_command.php
@@ -0,0 +1,12 @@
+#!/usr/local/bin/php -f
+<?php
+ /* upgrade embedded users serial console */
+ require_once("globals.inc");
+ require_once("functions.inc");
+ require_once("config.inc");
+ if($g['platform'] == "embedded") {
+ $config['system']['enableserial'] = true;
+ write_config();
+ }
+ setup_serial_port();
+?> \ No newline at end of file
OpenPOWER on IntegriCloud