File feathercoind-safe of Package feathercoin

#!/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/.feathercoin-tmp.$$ || exec /usr/bin/feathercoind "$@" 2>&3 3>&-
rm -f $HOME/.feathercoin-tmp.$$
echo "Apparmor profile not active! Refusing!" 1>&3
exit 1