From 493f0ffdeae0e3916bf813951c9e921d9c554ce7 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 15 Mar 2010 14:02:19 -0700 Subject: add hook for boot-time config loading environment --- etc/init.d/vyatta-router | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router index 3f64b9c..c41c48a 100755 --- a/etc/init.d/vyatta-router +++ b/etc/init.d/vyatta-router @@ -117,7 +117,13 @@ load_bootfile () { if [ -x $vyatta_sbindir/vyatta-config-loader.pl ]; then log_progress_msg configure - sg ${GROUP} -c "$vyatta_sbindir/vyatta-config-loader.pl $BOOTFILE" + ( + if [ -f /etc/default/vyatta-load-boot ]; then + # build-specific environment for boot-time config loading + source /etc/default/vyatta-load-boot + fi + sg ${GROUP} -c "$vyatta_sbindir/vyatta-config-loader.pl $BOOTFILE" + ) fi } -- cgit v1.2.3