Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I installed firefly (standalone, easy method 2). My install works so now I want it to start automatically. I currently have a fun_plug which was installed when I installed telnet. Below is a copy of my fun_plug, I don't know what to do or edit so firefly starts automatically. I tried a few things but it didn't work.
Commands I want to include in my fun_plug:
export PATH=/mnt/HD_a2/lnx_bin:$PATH
export LD_LIBRARY_PATH=/mnt/HD_a2/lnx_bin/lib
/mnt/HD_a2/lnx_bin/mt-daapd -c /mnt/HD_a2/lnx_bin/mt-daapd.conf
---------------------------------------------------------------------------------------------------------------------------
Current fun_plug:
#!/bin/sh
VOL1=/mnt/HD_a2
VOL2=/mnt/HD_b2
FUNPLUGTAR=${VOL1}/fun_plug.tar
FUNPLUGDIR=${VOL1}/fun_plug.d
ETCDIR=${FUNPLUGDIR}/etc
BINDIR=${FUNPLUGDIR}/bin
SBINDIR=${FUNPLUGDIR}/bin
LIBDIR=${FUNPLUGDIR}/lib
LOGDIR=${FUNPLUGDIR}/log
LOGFILE=${LOGDIR}/fun_plug.log
PATH=${BINDIR}:${PATH}
LD_LIBRARY_PATH=${LIBDIR}
export VOL1
export VOL2
export FUNPLUGDIR
export ETCDIR
export BINDIR
export LIBDIR
export LOGDIR
export LOGFILE
export PATH
export LD_LIBRARY_PATH
umask 022
mkdir -p ${FUNPLUGDIR} ${LOGDIR}
echo "**** fun_plug script for DNS-323 (2007-07-22 tp@fonz.de) ****" >>${LOGFILE}
date >>${LOGFILE}
if [ -r "${FUNPLUGTAR}" ]; then
echo "* Extracting ${FUNPLUGTAR}..." >>${LOGFILE}
/bin/tar -xv -f ${FUNPLUGTAR} -C ${FUNPLUGDIR} 1>>${LOGFILE} 2>&1
echo "* Deleting ${FUNPLUGTAR}..." >>${LOGFILE}
rm -f ${FUNPLUGTAR}
fi
# suid busybox
if [ -e ${BINDIR}/busybox ]; then
chown root.root ${BINDIR}/busybox
chmod 0755 ${BINDIR}/busybox
chmod u+s ${BINDIR}/busybox
fi
echo "${LIBDIR}" >>/etc/ld.so.conf
ldconfig
if [ -d "${FUNPLUGDIR}/start" ]; then
for fun_plug_script in ${FUNPLUGDIR}/start/*.sh; do
if [ -x "${fun_plug_script}" ]; then
echo "* Running ${fun_plug_script} start ..." >>${LOGFILE}
${fun_plug_script} start 1>>${LOGFILE} 2>&1
else
echo "* ${fun_plug_script} not executable..." >>${LOGFILE}
fi
done
else
echo "* ${FUNPLUGDIR}/start: Directory not found"
fi
echo "* Done" >>${LOGFILE}
Last edited by sevans1965 (2008-04-01 13:49:18)
Offline
I find it hard to believe that no one on this forum can help me edit my fun_plug. What did everyone else do that installed firefly on their DNS????
Maybe the right person didn't read my post the first go around.
Offline
When you installed firefly you should have got a start file calles something like firefly.sh, mt-daapd.sh or simmilar.
If you place this file in your funplug directory under the start directory and make it have the executable bit set (chmod u+x filename.sh) it will start automatic..
These lines in your fun plug search and execute all files in funplug_dir/start/
if [ -d "${FUNPLUGDIR}/start" ]; then
for fun_plug_script in ${FUNPLUGDIR}/start/*.sh; do
if [ -x "${fun_plug_script}" ]; then
echo "* Running ${fun_plug_script} start ..." >>${LOGFILE}
Offline