Skip to content

Commit

Permalink
Merge pull request #35 from rebortg/improve/commandscripting
Browse files Browse the repository at this point in the history
add postconfig
  • Loading branch information
UnicronNL committed Apr 15, 2019
2 parents 7943281 + 613da90 commit b561477
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion docs/commandscripting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,23 @@ To make sure that a script is not accidentally called without the ``vyattacfg``
if [ "$(id -g -n)" != 'vyattacfg' ] ; then
exec sg vyattacfg -c "/bin/vbash $(readlink -f $0) $@"
fi
fi
Postconfig on boot
------------------

The ``/config/scripts/vyos-postconfig-bootup.script`` script is called on boot after the VyOS configuration is fully applied.

Any modifications done to work around unfixed bugs and implement enhancements which are not complete in the VyOS system can be placed here.

The default file looks like this:

.. code-block:: sh
#!/bin/sh
# This script is executed at boot time after VyOS configuration is fully applied.
# Any modifications required to work around unfixed bugs
# or use services not available through the VyOS CLI system can be placed here.
.. hint::
For configuration/upgrade management issues, modification of this script should be the last option. Always try to find solutions based on CLI commands first.

0 comments on commit b561477

Please sign in to comment.