summaryrefslogtreecommitdiff
path: root/etc/init.d/vyatta-router
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-03-15 14:02:19 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-03-15 14:02:19 -0700
commit493f0ffdeae0e3916bf813951c9e921d9c554ce7 (patch)
treee2769731f438c0cdda190eab2e10a95df79b6709 /etc/init.d/vyatta-router
parent1c9fdd378e53ff62a4e2853407a0a1978be0bf45 (diff)
downloadvyatta-cfg-493f0ffdeae0e3916bf813951c9e921d9c554ce7.tar.gz
vyatta-cfg-493f0ffdeae0e3916bf813951c9e921d9c554ce7.zip
add hook for boot-time config loading environment
Diffstat (limited to 'etc/init.d/vyatta-router')
-rwxr-xr-xetc/init.d/vyatta-router8
1 files changed, 7 insertions, 1 deletions
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
}