From 7ba8b208375073b6aaaacf10b38950d5f7a39ead Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 3 Jul 2018 13:09:31 +0200 Subject: T727: add support for pre-config boot scripts. --- etc/init.d/vyatta-router | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'etc') 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 -- cgit v1.2.3