diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-01-02 10:40:54 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-01-02 10:41:37 +0100 |
commit | 890ed336c63f33a2e6e70c3cb455416721acb239 (patch) | |
tree | 1ea209386ab7bddc3264dc39965ecce99d40ea4c | |
parent | 26f59ef043e87e5553752980f1595131b949a901 (diff) | |
download | vyatta-cfg-890ed336c63f33a2e6e70c3cb455416721acb239.tar.gz vyatta-cfg-890ed336c63f33a2e6e70c3cb455416721acb239.zip |
T1146: run postconfig scripts from vyos-router startup script to force correct ordering.
-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() |