From 447c8e03a1c0dc149fb29fdcd12913f595118590 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 3 May 2007 22:15:48 +0000 Subject: Do not attempt to touch /needs_package_sync on CDROM platform. --- usr/local/www/diag_backup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local') 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 */ -- cgit v1.1