summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-01-02 10:40:54 +0100
committerDaniil Baturin <daniil@baturin.org>2019-01-02 10:41:37 +0100
commit890ed336c63f33a2e6e70c3cb455416721acb239 (patch)
tree1ea209386ab7bddc3264dc39965ecce99d40ea4c
parent26f59ef043e87e5553752980f1595131b949a901 (diff)
downloadvyatta-cfg-890ed336c63f33a2e6e70c3cb455416721acb239.tar.gz
vyatta-cfg-890ed336c63f33a2e6e70c3cb455416721acb239.zip
T1146: run postconfig scripts from vyos-router startup script to force correct ordering.
-rwxr-xr-xscripts/init/vyos-router14
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()