diff --git a/sysutils/pfSense-pkg-filer/Makefile b/sysutils/pfSense-pkg-filer/Makefile
index 06c371a2078bd6bc7c808e535db9ed37adc7a1c8..e59dbe1e6832f577411189a2e03c990574f23696 100644
--- a/sysutils/pfSense-pkg-filer/Makefile
+++ b/sysutils/pfSense-pkg-filer/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	pfSense-pkg-Filer
 PORTVERSION=	0.60.6
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	sysutils
 MASTER_SITES=	# empty
 DISTFILES=	# empty
diff --git a/sysutils/pfSense-pkg-filer/files/usr/local/pkg/filer.inc b/sysutils/pfSense-pkg-filer/files/usr/local/pkg/filer.inc
index 836af5c888979f5c6bcbbd97e8195c551a2cc345..b624181673f3efbd130fa319f58dd215909fb25a 100644
--- a/sysutils/pfSense-pkg-filer/files/usr/local/pkg/filer.inc
+++ b/sysutils/pfSense-pkg-filer/files/usr/local/pkg/filer.inc
@@ -31,11 +31,10 @@ function filer_text_area_decode($text) {
 	return preg_replace('/\r\n/', "\n", base64_decode($text));
 }
 
-function sync_package_filer() {
+function sync_package_filer($post = array()) {
 	global $config, $g;
 	$update_conf = 0;
 
-
 	/* Loop on configured files. */
 	if ($config['installedpackages']['filer']['config'] != "") {
 		$count = 0;
@@ -46,6 +45,9 @@ function sync_package_filer() {
 				$update_conf++;
 			}
 			$count++;
+			if (!empty($post) && ($post['id'] != ($count - 1))) {
+				continue;
+			}
 			if (preg_match("/0?[0-7]{3}/", $file['mod'])) {
 				$mod = octdec($file['mod']);
 			} else {
@@ -57,7 +59,7 @@ function sync_package_filer() {
 			chmod($file['fullfile'], $mod);
 
 			/* Check if there is a script to run after file save. */
-			if ($file['cmd'] != "") {
+			if (!empty($file['cmd'])) {
 				switch ($file['background']) {
 					case "background":
 						mwexec_bg($file['cmd']);
@@ -65,6 +67,8 @@ function sync_package_filer() {
 					case "foreground":
 						mwexec($file['cmd']);
 						break;
+					default:
+						break;
 				}
 			}
 		}
@@ -74,7 +78,6 @@ function sync_package_filer() {
 			write_config("Filer: Settings saved");
 		}
 	}
-
 	
 	filer_sync_on_changes();
 }
diff --git a/sysutils/pfSense-pkg-filer/files/usr/local/pkg/filer.xml b/sysutils/pfSense-pkg-filer/files/usr/local/pkg/filer.xml
index 6c221ca9a74429fc410c236ec548ff39a6a0cfd8..bbd9edef2c4d315f5c956e3b59693aca7a21b4ec 100644
--- a/sysutils/pfSense-pkg-filer/files/usr/local/pkg/filer.xml
+++ b/sysutils/pfSense-pkg-filer/files/usr/local/pkg/filer.xml
@@ -135,6 +135,6 @@
 		sync_package_filer();
 	</custom_delete_php_command> 
 	<custom_php_resync_config_command>
-		sync_package_filer();
+		sync_package_filer($_POST);
 	</custom_php_resync_config_command>
 </packagegui>
