aboutsummaryrefslogtreecommitdiff
path: root/etc/etc.i386/EXTRACT_bin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/etc.i386/EXTRACT_bin.sh')
-rwxr-xr-xetc/etc.i386/EXTRACT_bin.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/etc/etc.i386/EXTRACT_bin.sh b/etc/etc.i386/EXTRACT_bin.sh
new file mode 100755
index 000000000000..d6821747b195
--- /dev/null
+++ b/etc/etc.i386/EXTRACT_bin.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# This file will extract all of the FreeBSD binaries into ${EXTRACT_TARGET}
+# if it is set, or / otherwise.
+#
+# CAUTION DO NOT USE THIS TO INSTALL THE BINARIES ONTO A RUNNING
+# SYSTEM, it will NOT WORK!!! You should use the extract command from /magic
+# for installing the bindist onto your system.
+SOURCEDIR=.
+if [ X"${EXTRACT_TARGET}" = X"" ]; then
+ echo "YOU DO NOT WANT TO DO THAT!!!"
+ exit
+ EXTRACT_TARGET=/
+fi
+
+cd $SOURCEDIR
+cat bin_tgz.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
+#NO_EXPORT#cat des_tgz.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -