summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
-rwxr-xr-xscripts/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