blob: a1cbdc0258a2312bdbd62a3a9a15bb02baf593db (
plain) (
tree)
|
|
#!/bin/sh
PREFIX="%%PREFIX%%"
PROGRAM="${0}"
DIRNAME=${HOME}/.edonkey2000-core
if [ ! -d ${DIRNAME} ]
then
mkdir -p ${DIRNAME}
fi
if [ ! -h ${DIRNAME}/${PROGRAM##*/} ]
then
ln -sf ${PREFIX}/sbin/${PROGRAM##*/}-real ${DIRNAME}/${PROGRAM##*/}
fi
echo " ${*} " | grep " \-createdironly " ||
{
cd ${DIRNAME} &&
echo Running under ${DIRNAME} &&
exec ./${PROGRAM##*/} "${@}" ||
echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again
}
|