opnsense-src/release/scripts/src-install.sh
Jordan K. Hubbard 2838466c09 Check in the shell scripts I used for the 2.1-RELEASE CDROM. These
are provided simply as easy short-cuts for users who are prowling through
the dists structure and decide to install something directly from there.

There still needs to be some glue stuck into release/Makefile to copy
these into the appropriate homes following a full `make release', but I'll
wait until phk is done in there.
1996-01-08 06:19:45 +00:00

21 lines
461 B
Bash
Executable file

#!/bin/sh
#
if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
if [ $# -lt 1 ]; then
echo "You must specify which components of src to extract"
echo "possible subcomponents are:"
echo
echo "base bin etc games gnu include lib libexec lkm release"
echo "sbin share smailcf sys subin susbin"
echo
exit 1
fi
for i in $*; do
echo "Extracting source component: $i"
cat s${i}.?? | tar --unlink -xpzf - -C /usr/src
done
exit 0