#!/bin/sh
#
# $Id: openclone-webinterface-wrapper 86 2009-05-02 19:02:20Z lxp $
#
# This file is part of OpenClone.
#
# Copyright (C) 2009  David Gnedt
#
# OpenClone 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.
#
# OpenClone 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 OpenClone.  If not, see <http://www.gnu.org/licenses/>.
#

DATAPATH="/data"

case "$1" in
	delimage)
		if [ -e "$DATAPATH/image$2" ]; then
			rm -Rf "$DATAPATH/image$2"
			exit $?
		else
			exit 1
		fi
		;;
esac
exit 1

