Gunzip sshfs.gz and copy it to /mnt/opt/privateer/usr/bin. If you have an ssh server with auth key support, copy the private rsa key to the tv /mnt/ and convert it with
Code: Select all
dropbearconvert openssh dropbear /mnt/your_key /mnt/your_key-drop
Code: Select all
sshfs -o ssh_command="ssh -i /mnt/your_key-drop" user@server:/media /dtv/usb/sdk/
Code: Select all
ssh -i /mnt/your_key-drop user@server "yourscript.sh"
Code: Select all
#!/bin/sh
SERVER="xxx.xxx.xxx.xxx"
ping -w1 ${SERVER} >/dev/null || wakelan -m xx:xx:xx:xx:xx:xx
sleep 60
ping -w1 ${SERVER} >/dev/null || exit
ssh -i /mnt/your_key-drop root@${SERVER} "mount -o noatime,nodiratime /dev/mapper/pool01 /hddpool/pool01"
ssh -i /mnt/your_key-drop root@${SERVER} "/etc/init.d/minidlna restart"
mkdir -p /dtv/usb/sdk/Media
sshfs -o ssh_command="ssh -i /mnt/opt/privateer/usr/bin/nano" data@${SERVER}:/hddpool/pool01/ /dtv/usb/sdk/Media
echo -e "[sdk]\nVendor : Linux\nProduct : SSHFS\nSerial : Q22VQLFK\nDevpath : 13\nLun : 0\nScsiDevicePath : /dev/sdk\nMountDir : /dtv/usb/sdk\nFileSystem : vfat\n" >> /dtv/usb/usblog