      #
      [[ "$pkg_tarball" != "" ]] && wrt_remove_build_dirs2 "${name}"
      #
-@@ -863,8 +941,13 @@
+@@ -862,8 +940,13 @@
                  else
                    wrt_run_as_chroot1  "${this_script}" "${file}"
                  fi

             </xsl:if>
+            <!-- paco begin -->
+            <!-- General rule -->
+            <xsl:if test="$use_paco != '0' and 
+                    @id='ch-scripts-bootscripts' or
+                    @id='ch-scripts-udev-rules' or
+                    @id='ch-bootable-kernel' or

   done  # for file in final-system/* ...
 }
 
@@ -604,6 +633,11 @@
     # Keep the script file name
     this_script=`basename $file`
 
