summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-06-05 19:57:18 -0500
committerJohn Estabrook <jestabro@vyos.io>2024-06-05 19:57:18 -0500
commitd34edc5c15f939f87648b0f8588f99474c53b459 (patch)
tree4aa1bcced8024d5949dd9dc2fab1e94134302131 /src/init
parent4f18517c9b0a912582933ddbc5424759c676c290 (diff)
downloadvyos-1x-d34edc5c15f939f87648b0f8588f99474c53b459.tar.gz
vyos-1x-d34edc5c15f939f87648b0f8588f99474c53b459.zip
migration: T6006: add activation script dir and helper function
Diffstat (limited to 'src/init')
-rwxr-xr-xsrc/init/vyos-router11
1 files changed, 11 insertions, 0 deletions
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