summaryrefslogtreecommitdiff
path: root/etc/init.d/vyatta-router
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-07-03 13:09:31 +0200
committerDaniil Baturin <daniil@baturin.org>2018-07-03 13:09:31 +0200
commit7ba8b208375073b6aaaacf10b38950d5f7a39ead (patch)
tree6da5e433c638a9ba67d9a4495bde08b218021260 /etc/init.d/vyatta-router
parent345dd8b4c3eb14e1161f26076a7b368ae89dd56d (diff)
downloadvyatta-cfg-7ba8b208375073b6aaaacf10b38950d5f7a39ead.tar.gz
vyatta-cfg-7ba8b208375073b6aaaacf10b38950d5f7a39ead.zip
T727: add support for pre-config boot scripts.
Diffstat (limited to 'etc/init.d/vyatta-router')
-rwxr-xr-xetc/init.d/vyatta-router11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router
index 8888fa9..630a972 100755
--- a/etc/init.d/vyatta-router
+++ b/etc/init.d/vyatta-router
@@ -108,6 +108,14 @@ load_bootfile ()
)
}
+# execute the pre-config script
+run_preconfig_script ()
+{
+ if [ -x /config/scripts/vyos-preconfig-bootup.script ]; then
+ /config/scripts/vyos-preconfig-bootup.script
+ fi
+}
+
#
# On image booted machines, we need to mount /boot from the image-specific
# boot directory so that kernel package installation will put the
@@ -188,6 +196,9 @@ start ()
log_daemon_msg "Starting VyOS router"
disabled migrate || migrate_bootfile
+
+ run_preconfig_script
+
for s in ${subinit[@]} ; do
if ! disabled $s; then
log_progress_msg $s