diff options
author | Tom Grennan <tgrennan@vyatta.com> | 2008-01-31 16:52:29 -0800 |
---|---|---|
committer | Tom Grennan <tgrennan@vyatta.com> | 2008-01-31 16:52:29 -0800 |
commit | 52c8ddb98f3a3b8b9bc20b3417678bc4111969f5 (patch) | |
tree | 9b0717cfd2f87b87c0435e78f052e239ba4ed7e6 | |
parent | 622bbf801bd435a3848c669ff2c0e9090cd2bb4e (diff) | |
download | vyatta-cfg-quagga-52c8ddb98f3a3b8b9bc20b3417678bc4111969f5.tar.gz vyatta-cfg-quagga-52c8ddb98f3a3b8b9bc20b3417678bc4111969f5.zip |
source /etc/default/vyatta instead of configuring install-system
-rw-r--r-- | configure.ac | 3 | ||||
-rwxr-xr-x | scripts/install-system (renamed from scripts/install-system.in) | 24 |
2 files changed, 15 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac index d4a46fab..39771f0a 100644 --- a/configure.ac +++ b/configure.ac @@ -22,8 +22,7 @@ AC_ARG_ENABLE([nostrip], AC_CONFIG_FILES( [Makefile] - [debian/vyatta-cfg-system.postinst] - [scripts/install-system]) + [debian/vyatta-cfg-system.postinst]) AC_SUBST(NOSTRIP) 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 |