Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Adding schedules option to packages

    Development
    1
    2
    784
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xbipin
      last edited by

      i have modified the pkg_edit.php file to allow packages a schedule selection control (pull request sent) and that works well but now the issue is how do i trigger the on and off for a executable when the schedule is in effect and out of effect, is there some function i can call or do i need to go and edit some inc library file to add the function.

      i want to allow use of schedules in packages so it can be used by many more things rather than rules and limiters only.

      1 Reply Last reply Reply Quote 0
      • X
        xbipin
        last edited by

        upon further investigation it seems filter.inc has a function called filter_configure_sync where everything happens so is it fine if i add the on and off code there or do i create a new function for it?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.