Like the other services, Box only has GUIs for Windows and Mac, currently. Luckily, the cloud storage is on WebDAV filesystems. This is how you can get your plug to mount these internet directories:
First, install davfs2, already in the repo
$this->bbcode_second_pass_code('', 'pacman -Sy davfs2')
There may be some dependencies to install to so say "Y" to all of them. For a service like Box, echo the following line with your accounts username or email and password
$this->bbcode_second_pass_code('', 'echo “https://www.box.com/dav user password” >> /etc/davfs2/secrets')
Next, pick a location on where to mount your web directory (can be anywhere but I chose this)
$this->bbcode_second_pass_code('', 'mkdir /mnt/Box-cloud')
Lastly, echo this line to your fstab and then mount (change uid,gid to users,groups you are comfortable with)
$this->bbcode_second_pass_code('', 'echo "https://www.box.com/dav /mnt/Box-cloud davfs defaults,uid=username,gid=groupname 0 0" >> /etc/fstab
mount -a')
EDIT: if there are issues with fstab handling the mounting you can forego the previous step and add this line to /etc/rc.local
$this->bbcode_second_pass_code('', 'mount.davfs https://www.box.com/dav /mnt/Box-cloud')
And that's it! Your Box account is now a mounted folder on your plug. When copying files/folders to or from this directory the process may be slow as it must communicate with the remote server for indexing prior to actual up/download.
Proven sites/directories (directory location):
- Box (https://www.box.com/dav)
4shared (https://webdav.4shared.com)
Notes:
*If you get an "Input/output error", echo this
$this->bbcode_second_pass_code('', 'echo "use_locks 0" >> /etc/davfs2/davfs2.conf')
*There is a delay in beginning the upload sequence to allow for multiple directory changes BEFORE they actually start to transfer, making indexing faster for batch uploads. The default is 10 seconds and works well when I batched 400MB in 5 cp -r commands. If you don't plan on batching you can set this to 0 or, if you have a slower connection, can set this greater by adding this to /etc/davfs2/davfs2.conf
$this->bbcode_second_pass_code('', 'delay_upload #')