diff options
Diffstat (limited to 'etc/init.d')
-rwxr-xr-x | etc/init.d/vyatta-router | 8 |
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 } |