summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2008-01-31 16:52:29 -0800
committerTom Grennan <tgrennan@vyatta.com>2008-01-31 16:52:29 -0800
commit52c8ddb98f3a3b8b9bc20b3417678bc4111969f5 (patch)
tree9b0717cfd2f87b87c0435e78f052e239ba4ed7e6 /scripts
parent622bbf801bd435a3848c669ff2c0e9090cd2bb4e (diff)
downloadvyatta-cfg-quagga-52c8ddb98f3a3b8b9bc20b3417678bc4111969f5.tar.gz
vyatta-cfg-quagga-52c8ddb98f3a3b8b9bc20b3417678bc4111969f5.zip
source /etc/default/vyatta instead of configuring install-system
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-system (renamed from scripts/install-system.in)24
1 files changed, 14 insertions, 10 deletions
diff --git a/scripts/install-system.in b/scripts/install-system
index 0a3ed1e6..8f7f0acb 100755
--- a/scripts/install-system.in
+++ b/scripts/install-system
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Module: install-system
#
@@ -30,12 +30,16 @@
#
# If you set VYATTA_AUTO_INSTALL I will try to do an automated install for you
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-bindir=@bindir@
-sbindir=@sbindir@
-sysconfdir=@sysconfdir@
-ofrconfdir=$sysconfdir/config
+if [ -e /etc/default/vyatta ] ; then
+ . /etc/default/vyatta
+fi
+: ${vyatta_prefix:=/opt/vyatta}
+: ${vyatta_exec_prefix:=$vyatta_prefix}
+: ${vyatta_bindir:=${vyatta_exec_prefix}/bin}
+: ${vyatta_sbindir:=${vyatta_exec_prefix}/sbin}
+: ${vyatta_sysconfdir:=${vyatta_prefix}/etc}
+
+ofrconfdir=${vyatta_sysconfdir}/config
fdconfdir=/media/floppy/config
rootfsdir=/mnt/rootfs
@@ -463,8 +467,8 @@ install_root_filesystem () {
copy_config () {
config_partition=$1
lerror=''
- config_default=$sysconfdir/config.boot.default
- tmp_config_default=/tmp/${sysconfdir//\//__}
+ config_default=$vyatta_sysconfdir/config.boot.default
+ tmp_config_default=/tmp/${vyatta_sysconfdir//\//__}
# create the config directory on the union file system
mkdir -p $rootfsdir$ofrconfdir
@@ -763,7 +767,7 @@ unmount () {
progress_indicator () {
case "$1" in
- "start") $bindir/progress-indicator $SPID &
+ "start") $vyatta_bindir/progress-indicator $SPID &
;;
"stop") rm -f /tmp/pi.$SPID
sleep 1