#!/bin/sh

# (C) 2013 Peter Conrad <conrad@quisquis.de>
#
# This file is licensed under the terms of the MIT License.
# See the file "COPYING" contained in the same package for details.

exec 3>&2 2>/dev/null
echo hi >$HOME/.tradecoin-tmp.$$ || exec /usr/bin/tradecoind "$@" 2>&3-
rm -f $HOME/.tradecoin-tmp.$$
echo "Apparmor profile not active! Refusing!" 1>&3
exit 1
