How to mount shares automatically after start or reboot
#1
Posted 19 January 2016 - 00:30
Re: How to mount shares automatically after start or reboot #2
Posted 19 January 2016 - 07:43
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: How to mount shares automatically after start or reboot #3
Posted 19 January 2016 - 07:56
Yes, it worked normally. My xtrend et8000 connects the configurated mountpoints after reboot successfully, but mybox don´t need the fix for ethernet, but a friend of me has the problem with the network and reboots)
But I surprise that mountpoint work if phruby makes a mount again. I understand the ethernetd driver bug has the effect that ethernet doesn´t work any time. Only switching off the box, waiting some minutes, switching on the box will wokraround the ethernet driver bug.
We hope the fix inside the bsp for the ethernet of xtrend et8000 will be available end this week in PLI nightly builds
Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX
Re: How to mount shares automatically after start or reboot #4
Posted 19 January 2016 - 13:45
If the box uses a WLAN connection, it could well be that it takes to long for the network connection to be set up.
These mounts are made when Enigma starts, if there is no network connection when this happens, the mounts can not be made, and Enigma will not wait...
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: How to mount shares automatically after start or reboot #5
Re: How to mount shares automatically after start or reboot #6
Posted 19 January 2016 - 14:16
Is there a way to start WLAN earlier during booting linux and atfer some waiting time a delayed start of enigma ?
Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX
Re: How to mount shares automatically after start or reboot #7
Posted 19 January 2016 - 15:08
You can create a script called "/usr/bin/enigma2_pre_start.sh", it will be called if it exists before enigma starts. Make sure you make it executable.
You can use this to wait for maximum 30 seconds for a network link:
# # Wait for the default gateway to become reachable # timeout=30 while [ $timeout -ne 0 ] ; do ip=`ip r | grep default | cut -d ' ' -f 3` if [ ! -z $ip ]; then ping -q -w 1 -c 1 $ip > /dev/null if [ $? -eq 0 ]; then break; fi fi let "timeout--" sleep 1 done
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: How to mount shares automatically after start or reboot #8
Posted 19 January 2016 - 23:13
Hi,
Thank you for a quick reply. However, it did not seem to work.
Here is what I did: I created a text file enigma2_pre_start.sh containing the script in the previous message, and using Windows explorer on a PC copied it into ET8000, into the folder \\ET8000\Root\usr\bin. It is the folder where also the file enigma2.sh is.
In Windows Explorer, I right-clicked enigma2_pre_start.sh and assigned it the same security properties as the script enigma2.sh has: i.e. Everyone and root (Unix Group \root) have rights to read & execute, and root (Unix User\root) has full control. If this is not correct, could you write step-by-step how to "make sure to make it executable", please? I am not very familiar with Linux.
Additional notes, in case it might be relevant:
1. I am using a WLAN USB dongle (model MK-Digital USB WLAN N300, based on Realtek RTL8192CU chipset). In OpenPLi, I could not connect to WLAN when using DHCP. WLAN first started working after I assigned a static IP to ET8000.
2. WLAN connects quite fast. When TV starts playing, WLAN is already connected.
3. In Setup/System/Network/WLAN connection/Show WLAN status, the field Encryption has value "Unsupported". Nevertheless, ET8000 is connected using WPA encryption (WPA2 did not work).
4. The automount after reboot worked perfectly in OpenATV image. OpenATV had other problems. mainly with Media Player, but shared folders were mounted automatically after reboot.
Any suggestions?
Thanks,
Pavel
Re: How to mount shares automatically after start or reboot #9
Posted 20 January 2016 - 07:42
Linux and Windows don't play well together. Using a windows editor on files you use in a Unix say Linux environment is a no-no. I suggest you use notepad++ ( https://notepad-plus-plus.org/ ) better is to write it in a Linux environment with a native editor like Vi.
If you login with telnet (you could do this with putty http://www.chiark.gr...y/download.html ) and do a "ls" in the /usr/bin folder, then you'll see that only the executable files are green and the sh file you have created is probably not. You could try to make the file executable with "chmod 755 enigma2_pre_start.sh" without the "".
Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport
---------------------------------------------------------------------------------------------------------------------------------------
Remember: Upvote with the button for any user/post you find to be helpful, informative, or deserving of recognition!
---------------------------------------------------------------------------------------------------------------------------------------
Many answers to your question can be found in our new and improved wiki
Re: How to mount shares automatically after start or reboot #10
Posted 20 January 2016 - 07:56
http://forums.openpl...ot/#entry526058
also fixes your problem. But changes are not yet in the image.
Also tagged with one or more of these keywords: automount, Mount Manager
OpenPli 9.0 freeze by network mount managerStarted by LVM, 19 Dec 2023 network, mount manager |
|
|||
Unable to change hostname in mount managerStarted by lpnp, 5 Jun 2016 hostname, host name and 1 more... |
|
|||
Can Device Manager by Xtrend work in OpenPLi basic image?Started by gorski, 14 Dec 2013 device manager, autofs and 3 more... |
|
|||
DM800 cannot mount Windows 8 Shared USB HDDStarted by fcs001fcs, 11 May 2013 mount manager, windows 8 |
|
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users