From d34edc5c15f939f87648b0f8588f99474c53b459 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 5 Jun 2024 19:57:18 -0500 Subject: migration: T6006: add activation script dir and helper function --- src/init/vyos-router | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/init/vyos-router') diff --git a/src/init/vyos-router b/src/init/vyos-router index a88810f08..59004fdc1 100755 --- a/src/init/vyos-router +++ b/src/init/vyos-router @@ -157,6 +157,15 @@ migrate_bootfile () fi } +# configure system-specific settings +system_config () +{ + if [ -x $vyos_libexec_dir/run-config-activation.py ]; then + log_progress_msg system + sg ${GROUP} -c "$vyos_libexec_dir/run-config-activation.py $BOOTFILE" + fi +} + # load the initial config load_bootfile () { @@ -501,6 +510,8 @@ start () update_interface_config + disabled system_config || system_config + for s in ${subinit[@]} ; do if ! disabled $s; then log_progress_msg $s -- cgit v1.2.3