summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-09 21:04:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-09 21:04:32 +0000
commit5f26831ee735fbd2778647742eec920cc413a78c (patch)
treefc7aed86156e9e88093951d2a4847cc6e1517375 /tmp
parent9c22a703bc7d3fff540c64fe3f0e5e1fd3db0a45 (diff)
downloadpfsense-5f26831ee735fbd2778647742eec920cc413a78c.zip
pfsense-5f26831ee735fbd2778647742eec920cc413a78c.tar.gz
Upgrade RELENG_1 as well for embedded.
Diffstat (limited to 'tmp')
-rwxr-xr-xtmp/post_upgrade_command9
-rwxr-xr-xtmp/post_upgrade_command.php12
2 files changed, 21 insertions, 0 deletions
diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command
new file mode 100755
index 0000000..5c49efc
--- /dev/null
+++ b/tmp/post_upgrade_command
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+touch /var/run/config.lock
+/etc/rc.conf_mount_rw
+
+# Now turn on or off serial console as needed
+php -f /tmp/post_upgrade_command.php
+
+rm /var/run/config.lock
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