CONF=/etc/config/qpkg.conf
QPKG_NAME="PS3netsrv"
QPKG_ROOT=`/sbin/getcfg $QPKG_NAME Install_Path -f ${CONF}`
export QPKG_NAME QPKG_ROOT
## create symlink
ln -sf $QPKG_ROOT /opt/PS3netsrv
### Where are the Share
WebShare=`/sbin/getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info`
export WebShare
## check PS3ISO (PS3ISO must be created first within webui)
if [ -d $WebShare/PS3ISO ]
then
echo "file exists"
else
mkdir -p $WebShare/PS3ISO
mkdir -p $WebShare/PS3ISO/PSXISO
mkdir -p $WebShare/PS3ISO/PS3ISO
mkdir -p $WebShare/PS3ISO/PS2ISO
mkdir -p $WebShare/PS3ISO/PSPISO
mkdir -p $WebShare/PS3ISO/ROMS
mkdir -p $WebShare/PS3ISO/GAMES
chmod -R 777 $WebShare/PS3ISO
fi