NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT MVPMCX2 and other NMT stuff v
« Previous 1 2 3 4 5 6 … 37 Next »
Where to place the mount for dvd share with WOL

 
  • 0 Vote(s) - 0 Average
Where to place the mount for dvd share with WOL
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#1
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:

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]
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#2
2012-01-23, 10:57 PM
The primary issue is the WOL command script is designed to work when running from on mvpmc share the first time it runs because that implies the mvpmc device is available. If you are counting on a share and the usb you need to move the move the mount of the Videos share after the copy of ether-wake and before the "fi"

Maybe add something like this

Code:
ping -c 3 192.168.1.83
if [ "$?" -ne "0" ]
  then
  ether-wake 00:24:1D:C4:A6:CA  
  sleep 20
fi

Martin
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#3
2012-01-24, 10:10 AM
Thanks Martin, that's looking good. I'll give it a try tonight.
[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]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  HANGING: "mount mounting\\192.168.2.7" TomH 8 3,905 2012-01-07, 04:16 PM
Last Post: TomH
  Mount problem after windows 7 sleep Sheik Yerbouti 6 2,927 2011-07-05, 06:04 PM
Last Post: Sheik Yerbouti
  Any way to Keep mvpmc share active on NMT for Web Service Invocation form anyhwere? jt25741 2 2,127 2011-04-01, 03:43 AM
Last Post: jt25741
  Mount mounting??? soccerdad 17 4,528 2011-01-30, 03:08 AM
Last Post: soccerdad
  Help with mounting DVD share in NPVR script Paul_B 3 2,029 2011-01-01, 09:51 PM
Last Post: mvallevand
  Mvpmc share in W7 Sheik Yerbouti 4 2,172 2010-07-29, 09:16 PM
Last Post: mvallevand
  The share folder no longer exists pcostanza 6 3,037 2010-04-07, 11:02 PM
Last Post: pcostanza
  Somehow screwed up my mvpmc share? Firetoad 2 1,855 2010-03-21, 06:29 AM
Last Post: Firetoad
  Share name change? zaldwaik 1 1,605 2009-12-11, 10:28 AM
Last Post: agerdin
  PCH network share soccerdad 13 5,725 2009-09-04, 01:22 AM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode