Skip to content

Commit

Permalink
development: +POST_INSTALL is automatic
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jul 14, 2021
1 parent 775d737 commit 0a5f23c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions source/development/examples/helloworld.rst
Expand Up @@ -961,17 +961,6 @@ directory, which results in the following file listing:
src/opnsense/service/templates/OPNsense/HelloWorld/helloworld.conf
src/opnsense/service/conf/actions.d/actions_helloworld.conf

Next add a +POST\_INSTALL file in the plugin directory, to reload the
configd process after installation. This is needed for the new “test”
command to register.


.. code-block:: sh
if /usr/local/etc/rc.d/configd status > /dev/null; then
/usr/local/etc/rc.d/configd restart
fi
With everything in place, you could build the plugin package using the
“make plugins” command in the /usr/tools directory. The result of this
will be a standard pkg package, which you can install on any OPNsense
Expand Down

0 comments on commit 0a5f23c

Please sign in to comment.