#!/bin/sh
if [ -z "$1" ]; then
	echo "USAGE: plasticfs <command>"
	exit 1
fi

if [ -n "$PLASTICFS" ]; then
	LD_PRELOAD="/usr/lib/libplasticfs.so.0 $LD_PRELOAD" \
	PLASTICFS="$PLASTICFS" \
	$@
else
	echo "ERROR: You need to specify the 'PLASTICFS' environment variable."
	echo "       See plasticfs(3) for details."
	exit 1
fi
