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

PHP Execute at startup

Scheduled Pinned Locked Moved webGUI
2 Posts 2 Posters 1.4k Views
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.
  • D
    dfc
    last edited by Nov 22, 2011, 9:44 AM

    Hello, I'm using pfSense-2.0 i386 and got a little problem. I need netgraph ng_ether nodes (like em0:, em1:). As I understood, the kernel is already compiled with ng_ether module, but i don't have sucj nodes in ngctl. I googled and found out that i can manually create nodes with php function pfSense_ngctl_attach() through web-gui (diagnostics-command). That helped, but after reboot the nodes are missing again. So, here is the question: how I can get this nodes created automatically after startup? May be I need to write this function in the config file or anywhere else?
    Thanks beforehand and sorry for my english :)

    1 Reply Last reply Reply Quote 0
    • M
      marcelloc
      last edited by Dec 22, 2011, 2:59 AM

      you can create a script and place at /usr/local/etc/rc.d dir

      test it before and don't forget a chmod +x on file

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received