#!/bin/sh BASEDIR="rootfs" echo "Creating custom OpenBSD 4.4 install sets working directory $BASEDIR:" if [ `id -u` != 0 ]; then echo "Aborting, program must be run as root." exit 1 fi if [ -e "$BASEDIR" ]; then echo "Aborting, $BASEDIR already exists." exit 1 fi mkdir "$BASEDIR" || exit 1 cd "$BASEDIR" echo "Extracting base set..." gunzip -c ../base44.tgz | tar xvpf - echo "Extracting etc set..." gunzip -c ../etc44.tgz | tar xvpf - echo "Done!"