2012-01-23, 09:32 PM
Sometimes I'm having problems with playing dvd's iso's on the PCH. I thought it was related to rights in W7, but I now believe it might be because of the startup script on the PCH and the combination with WakeOnLan. Here's my script:
This works fine if I run it the first time and my PC is on. But when the PC is off, the script tries to mount /mnt/D:\\Videos, while D:\\Videos isn't awake yet. How do I change this script to make the mount work?
Chris
Code:
#!/bin/sh
echo "Content-Length: 80";
echo "Content-type: text/html";
echo "";
cd ~
mkdir /etc/mvpmc >/dev/NULL
echo "";
if [ -f /etc/mvpmc/mvpmcx2 ]
then
echo "Already Connected!";
else
mount --bind /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1 /etc/mvpmc
mkdir /mnt/D:\\Videos
mount -t cifs //192.168.1.83/Videos /mnt/D:\\Videos/ -o username=guest,ro;
cp /etc/mvpmc/utelnetd /usr/bin;
cp /etc/mvpmc/ether-wake /usr/bin;
chmod 777 /etc/mvpmc/*;
utelnetd -l /bin/sh -p 23 &
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
echo "Telnetd started on port 23............";
fi
ether-wake 00:24:1D:C4:A6:CA
killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &
exit 0;
This works fine if I run it the first time and my PC is on. But when the PC is off, the script tries to mount /mnt/D:\\Videos, while D:\\Videos isn't awake yet. How do I change this script to make the mount work?
Chris
[SIZE="1"]i5 750 4GB RAM, Windows 10 Home, HDHomeRun HDHR3-4DC, Digital Devices Cine CT, OSCam on a Raspberry Pi with a Smargo Smartreader+, Raspberry Pi 2 OpenElec Kodi client, Gigabyte Brix 2807 OpenElec Kodi client[/SIZE]