Thread: webdav on n900
View Single Post
Posts: 26 | Thanked: 15 times | Joined on Dec 2012
#9
Hello,

thank you for your insights.

In my case I follow the next article (it is in german but the necessary commands to run are clearly documented) and it works flawless... until the part of automatic mounting of the WebDAV directories. In my case it wouldn't work since the /etc/fstab file is autogenerated in every reboot.

My workaround has been to run a script when connecting to 3G or Wifi to mount my WebDAV directory and run another one when disconnecting to unmount...

Create a "if-up.d" script for mounting WebDAV directories:

touch /etc/network/if-up.d/mount_dav
chmod 0755 /etc/network/if-up.d/mount_dav
nano /etc/network/if-up.d/mount_dav

And paste these lines in it:
#!/bin/sh
/bin/mount -t davfs http://your-webdav-host.com/ /media/dav

Create a "if-down.d" script for unmounting WebDAV directories:

touch /etc/network/if-down.d/umount_dav
chmod 0755 /etc/network/if-down.d/umount_dav
nano /etc/network/if-down.d/umount_dav

And paste these lines in it:
#!/bin/sh
/bin/umount /media/dav

Check if it works (by switching connection 3G/Wireless and watching what happens at File Manager).

Regards,

eNeKuX

Last edited by enekux; 2013-11-20 at 19:22.
 

The Following 3 Users Say Thank You to enekux For This Useful Post: