summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-03 22:15:48 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-03 22:15:48 +0000
commit447c8e03a1c0dc149fb29fdcd12913f595118590 (patch)
treed013d4bc21680d1d79d3b04db9503f5bd80bcb87 /usr/local
parent46d539880843ef9111ec0a7fb80939cec119f1fc (diff)
downloadpfsense-447c8e03a1c0dc149fb29fdcd12913f595118590.zip
pfsense-447c8e03a1c0dc149fb29fdcd12913f595118590.tar.gz
Do not attempt to touch /needs_package_sync on CDROM platform.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/diag_backup.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index d881358..c266b78 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -154,7 +154,8 @@ if ($_POST) {
if (config_install($_FILES['conffile']['tmp_name']) == 0) {
/* this will be picked up by /index.php */
conf_mount_rw();
- touch("/needs_package_sync");
+ if($g['platform'] <> "cdrom")
+ touch("/needs_package_sync");
$reboot_needed = true;
$savemsg = "The configuration has been restored. The firewall is now rebooting.";
/* remove cache, we will force a config reboot */
OpenPOWER on IntegriCloud