2010-04-14, 12:37 AM
i have afresh install and am having trouble with my gbpvr.cgi. the first time i load it i get "mkdir cannot create director" if i go to source and reload the cgi for a second time it works then. not sure why it takes two tries.
#!/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
mount -t cifs //192.168.1.7/mvpmc /etc/mvpmc -o username=root,rw
mkdir /mnt/O:\\DVD
mount -t cifs //192.168.1.7/DVD /mnt/O:\\DVD -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
mount -t cifs //192.168.1.7/mvpmc /etc/mvpmc -o username=root,rw
mkdir /mnt/O:\\DVD
mount -t cifs //192.168.1.7/DVD /mnt/O:\\DVD -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;
2.6quadcore,4gbddr2,(2)hvr1600,(2)pvr150,a-100,mvp, windows7