anchor.diff:          export PATH=${path}
           ${optionalString cfg.updateResolvConf
              "${pkgs.update-resolv-conf}/libexec/openvpn/update-resolv-conf"}
  +
  +        ${optionalString (cfg.down != "") "source ${userSuppliedDownScript}"}
  +      '';
  +
  +      userSuppliedUpScript = pkgs.writeScript "openvpn-${name}-userSuppliedUpScript" ''
  +        ${cfg.up}
  +      '';
  +
  +      userSuppliedDownScript = pkgs.writeScript "openvpn-${name}-userSuppliedDownScript" ''
           ${cfg.down}
         '';
   
  
positive.code:             default = "";
              type = types.lines;
              description = ''
                Shell commands executed when the instance is shutting down.
              '';
            };
  
  
negative.code:           fi
          done
  
          ${optionalString cfg.updateResolvConf
             "${pkgs.update-resolv-conf}/libexec/openvpn/update-resolv-conf"}
  
          ${optionalString (cfg.up != "") "source ${userSuppliedUpScript}"}
        '';
  
        downScript = ''
  