diff options
author | jkh <jkh@FreeBSD.org> | 1996-02-02 23:53:48 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-02-02 23:53:48 +0000 |
commit | 21c9c34c6c984309aedad8eae2a783ac2307c9fc (patch) | |
tree | 80ae6c48572d601f59ed8f96b075df4a35e8d9c6 | |
parent | a724de6de3f9d19ad0452b13b669e06fa38832c0 (diff) | |
download | FreeBSD-src-21c9c34c6c984309aedad8eae2a783ac2307c9fc.zip FreeBSD-src-21c9c34c6c984309aedad8eae2a783ac2307c9fc.tar.gz |
Add install script for doc, make bin install more intelligent.
-rwxr-xr-x | release/scripts/base-install.sh | 8 | ||||
-rwxr-xr-x | release/scripts/bin-install.sh | 8 | ||||
-rwxr-xr-x | release/scripts/doc-install.sh | 12 |
3 files changed, 22 insertions, 6 deletions
diff --git a/release/scripts/base-install.sh b/release/scripts/base-install.sh index 9ac20cb..8fab5c2 100755 --- a/release/scripts/base-install.sh +++ b/release/scripts/base-install.sh @@ -5,6 +5,8 @@ if [ "`id -u`" != "0" ]; then exit 1 fi echo "You are about to extract the base distribution into / - are you SURE" -echo "you want to do this over your installed system? If not, hit ^C now!" -read junk -cat bin.?? | tar --unlink -xpzf - -C / +echo -n "you want to do this over your installed system (y/n)? " +read ans +if [ "$ans" = "y" ]; then + cat bin.?? | tar --unlink -xpzf - -C / +fi diff --git a/release/scripts/bin-install.sh b/release/scripts/bin-install.sh index 9ac20cb..8fab5c2 100755 --- a/release/scripts/bin-install.sh +++ b/release/scripts/bin-install.sh @@ -5,6 +5,8 @@ if [ "`id -u`" != "0" ]; then exit 1 fi echo "You are about to extract the base distribution into / - are you SURE" -echo "you want to do this over your installed system? If not, hit ^C now!" -read junk -cat bin.?? | tar --unlink -xpzf - -C / +echo -n "you want to do this over your installed system (y/n)? " +read ans +if [ "$ans" = "y" ]; then + cat bin.?? | tar --unlink -xpzf - -C / +fi diff --git a/release/scripts/doc-install.sh b/release/scripts/doc-install.sh new file mode 100755 index 0000000..371312c --- /dev/null +++ b/release/scripts/doc-install.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# +if [ "`id -u`" != "0" ]; then + echo "Sorry, this must be done as root." + exit 1 +fi +echo "You are about to extract the doc distribution into / - are you SURE" +echo -n "you want to do this over your installed system (y/n)? " +read ans +if [ "$ans" = "y" ]; then + cat doc.?? | tar --unlink -xpzf - -C / +fi |