Configure external storage for saving and loading deluge settings
From WikiDLXTV
Contents
Problem
There is problem that deluge client only save settings while device is plugged in. On next time then device is plug in you need to set up deluge again.
Solution
- Enable startup of deluge on you device
- Configure settings you want in deluge.
- Stop deluge daemon.
- Copy deluge settings folder from "/tmp/deluge" to you external storage folder, i.e, "-deluge". This path is always stored in variable DELUGECONFIG in scripts we need make.
- Create deluge modified start/stop script named "deluge.script", located in DELUGECONFIG, and type [this (follow link)] source code.
- Create script "S00custom-options", type [this (follow link)] source code, and place it in root folder of you external storage.
- Create script "power.down", type [this (follow link)] source code, and place it in root folder of you external storage.
- Ok, now you need set up DEVICEID variable in "S00custom-options". Value is an external storage id. To see it, type command "mount" in ssh on you device. You will see string like "/tmp/media/usb/USB1/8d29b444-7459-41c2-a12a-c2a97087aef4". And "8d29b444-7459-41c2-a12a-c2a97087aef4" - is id of you device.
- Set up DELUGECONFIG variable in "S00custom-options" with value you selected erlier. In this tip it is "-deluge".
- Disable startup of deluge on you device
Content of external storage at end
.. $DELUGECONFIG $DELUGECONFIG/deluge.script power.down S00custom-options
Usage
Well, there is ways to using torrent on external storage:
Loading with torrent
- Plug off device
- Connect external storage
- Plug on device
- Wait about 1-2 mins, device will load and start deluge
For safe eject of external storage, push OFF button on remote. Script will close deluge and unmount filesystem.
Loading without torrent
- Plug off device
- Plug on device
- Wait for end of loading (you will see OSD main screen)
- Connect external storage