summaryrefslogtreecommitdiffstats
path: root/tmp/post_upgrade_command.php
blob: 0259f0fde33d26522b5ee37ad53b22c3dd298837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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();
	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")
		touch("/conf/needs_package_sync");

?>
OpenPOWER on IntegriCloud