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:40:54 +0100
commit15fe15d0b29592b36af4e87fc81dd6755708fa2e (patch)
tree9b372f0a2bc200d8dc46932f23fc032666e359e6
parent4548d038b432984011315a0b69540b63fddf5bc9 (diff)
downloadvyatta-cfg-15fe15d0b29592b36af4e87fc81dd6755708fa2e.tar.gz
vyatta-cfg-15fe15d0b29592b36af4e87fc81dd6755708fa2e.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()