From 15fe15d0b29592b36af4e87fc81dd6755708fa2e Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 2 Jan 2019 10:40:54 +0100 Subject: T1146: run postconfig scripts from vyos-router startup script to force correct ordering. --- scripts/init/vyos-router | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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() -- cgit v1.2.3