2012-01-22, 07:27 PM
Below is a copy/paste of my npvr.cgi with the dvd ISO mount code added. The npvr.cgi file below will not let me load mvpmv from the PCH menus ("Request cannot be processed" error message). When I delete the 2 dvd mount lines of code from the NPVR.cgi file I have no problems loading mvpmc with my PCH. Do I have the syntax wrong? I'm trying to mount I:\PVR\Videos\dvd where my ISO's are located. Thank you.
#!/bin/sh
echo "Content-Length: 29";
echo "Content-type: text/html";
echo "";
cd ~
if [ -f /etc/mvpmc/mvpmcx2 ]
then
echo "mvmcx2 is loaded";
else
mkdir /etc/mvpmc
mkdir /mnt/I:\\PVR\\Videos\\dvd
mount -t cifs //192.168.1.100/dvd /mnt/I:\\PVR\\Videos\\dvd -o username=xxx,password=xxxx,ro
mount -t cifs //192.168.1.100/mvpmc /etc/mvpmc -o username=root,rw
cp /etc/mvpmc/utelnetd /usr/bin
ln -s /lib/librmjpeg.so /lib/libjpeg.so.62
ln -s /lib/librmzlib.so /lib/libz.so
ln -s /lib/librmzlib.so /lib/libz.so.1
ln -s /lib/librmzlib.so /lib/libz.so.123
utelnetd -l /bin/sh -p 23 &
echo "Telnetd started on port 23............";
fi
killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &
exit 0;
#!/bin/sh
echo "Content-Length: 29";
echo "Content-type: text/html";
echo "";
cd ~
if [ -f /etc/mvpmc/mvpmcx2 ]
then
echo "mvmcx2 is loaded";
else
mkdir /etc/mvpmc
mkdir /mnt/I:\\PVR\\Videos\\dvd
mount -t cifs //192.168.1.100/dvd /mnt/I:\\PVR\\Videos\\dvd -o username=xxx,password=xxxx,ro
mount -t cifs //192.168.1.100/mvpmc /etc/mvpmc -o username=root,rw
cp /etc/mvpmc/utelnetd /usr/bin
ln -s /lib/librmjpeg.so /lib/libjpeg.so.62
ln -s /lib/librmzlib.so /lib/libz.so
ln -s /lib/librmzlib.so /lib/libz.so.1
ln -s /lib/librmzlib.so /lib/libz.so.123
utelnetd -l /bin/sh -p 23 &
echo "Telnetd started on port 23............";
fi
killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &
exit 0;