www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre17/scripts/future-bin/cinit.install.test
Nico Schottelius 759b58c293 released cinit-0.3pre17
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-10-05 19:14:52 +02:00

20 lines
527 B
Bash
Executable file

#!/bin/sh
# Nico Schottelius
# cinit: install basic test config
#
. $(dirname $0)/cinit.read-conf
TARDIR=$(dirname $0)/../samples
case `uname -s` in
Linux)
[ -e /etc/gentoo-release ] && TAR=${TARDIR}/gentoo.tar
[ -e /etc/debian_version ] && TAR=${TARDIR}/debian.tar
[ -e /etc/SuSE-release ] && TAR=${TARDIR}/suse.tar
[ -e /etc/mandrake-release ] && TAR=${TARDIR}/mandrake.tar
[ -e /etc/fedora-release ] && TAR=${TARDIR}/fedora.tar
;;
esac
tar xf ${TAR} -C "$DESTDIR/$PREFIX/$CINIT_DIR"