aboutsummaryrefslogtreecommitdiff
path: root/release/scripts/des-install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/des-install.sh')
-rwxr-xr-xrelease/scripts/des-install.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/release/scripts/des-install.sh b/release/scripts/des-install.sh
index c1fdedc09f78..13d7fdcf2eaa 100755
--- a/release/scripts/des-install.sh
+++ b/release/scripts/des-install.sh
@@ -4,16 +4,18 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
-echo "You are about to extract the DES distribution into / - are you SURE"
-echo "you want to do this over your installed system? If not, hit ^C now!"
+_DEST=${DESTDIR:-/}
+echo "You are about to extract the DES distribution into ${_DEST} - are you SURE"
+echo "you want to do this over your installed system? If not, hit ^C now,"
+echo -n "otherwise hit return to continue. "
read junk
-cat des.?? | tar --unlink -xpzf - -C /
-cat krb.?? | tar --unlink -xpzf - -C /
+cat des.?? | tar --unlink -xpzf - -C ${_DEST}
+cat krb.?? | tar --unlink -xpzf - -C ${_DEST}
echo -n "Do you want to install the DES sources (y/n)? "
read ans
if [ "$ans" = "y" ]; then
- cat scrypto.?? | tar --unlink -xpzf - -C /usr/src
- cat skerbero.?? | tar --unlink -xpzf - -C /usr/src
- cat ssecure.?? | tar --unlink -xpzf - -C /usr/src
+ cat scrypto.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
+ cat skerbero.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
+ cat ssecure.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
fi
exit 0