diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/init/vyos-router | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router index b4606f1..adeda2e 100755 --- a/scripts/init/vyos-router +++ b/scripts/init/vyos-router @@ -110,6 +110,18 @@ run_preconfig_script () fi } +# execute the post-config scripts +run_postconfig_scripts () +{ + if [ -x /config/scripts/vyatta-postconfig-bootup.script ]; then + /config/scripts/vyatta-postconfig-bootup.script + fi + + if [ -x /config/scripts/vyos-postconfig-bootup.script ]; then + /config/scripts/vyos-postconfig-bootup.script + fi +} + run_postupgrade_script () { if [ -f /config/.upgraded ]; then @@ -209,6 +221,8 @@ start () telinit q chmod g-w,o-w / + + run_postconfig_scripts } stop() |