#!/bin/sh set -e # emsandbox : emdebian rootfs installer # # Copyright (C) 2007-2008 Neil Williams # # This package is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # simple wrapper to aid installation of the rootfs # Provides a space for pre-installation custom commands as well as simplifying # the command line. TARGET=`pwd` PROG=emsecondstage usagehelp () { # print out help message cat < Running second stage config.sh script for this machine variant" sh $TARGET/machine/config.sh rm -r $TARGET/machine/ fi if [ -d $TARGET/debootstrap ]; then rm -rf $TARGET/debootstrap fi if [ -d $TARGET/machine ]; then rm -rf $TARGET/machine fi if [ -f $TARGET/0x97BB3B58.txt ]; then rm $TARGET/0x97BB3B58.txt fi # If there is no time or date, this will need to remain. #if [ -f $TARGET/emdebian-archive-keyring.gpg ]; then # rm $TARGET/emdebian-archive-keyring.gpg #fi if [ -d $TARGET/tmp/buildd ]; then rm -rf $TARGET/tmp/buildd fi # finally, remove self if [ -f $TARGET/emsecondstage ]; then rm $TARGET/emsecondstage fi echo "Emdebian base system installed successfully."