summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
Diffstat (limited to 'tmp')
-rwxr-xr-xtmp/post_upgrade_command.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
index bc6c29a..497e526 100755
--- a/tmp/post_upgrade_command.php
+++ b/tmp/post_upgrade_command.php
@@ -1,22 +1,19 @@
#!/usr/local/bin/php -f
<?php
+
/* upgrade embedded users serial console */
require_once("globals.inc");
- require_once("functions.inc");
require_once("config.inc");
+ require_once("functions.inc");
+
if($g['platform'] == "embedded") {
$config['system']['enableserial'] = true;
write_config();
}
+
setup_serial_port();
- if(file_exists("/usr/local/www/index.html"))
- unlink("/usr/local/www/index.html");
- if(file_exists("/usr/local/www/fred.png"))
- unlink("/usr/local/www/fred.png");
- if(file_exists("/usr/local/www/dfuife.cgi"))
- unlink("/usr/local/www/dfuife.cgi");
- if($g['platform'] == "pfSense")
+ if($g['platform'] == "pfSense" or $g['platform'] == "nanobsd")
touch("/conf/needs_package_sync");
$files_to_process = split("\n", file_get_contents("/etc/pfSense.obsoletedfiles"));
OpenPOWER on IntegriCloud