Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
340 stars 52 forks source link

Transmission/Amule/Aria2 restart trigger #1079

Closed capriele closed 3 years ago

capriele commented 3 years ago

Probably it could be useful to trigger Transmission/Amule/Aria2 restart when the usb is plugged in and out.

Here you can find an example that simply trigger transmission restart (I'm supposing that transmission is currently installed on the device):

root@dsl:/# cat /etc/hotplug.d/usb/60-transmission 
#!/bin/sh
/etc/init.d/transmission restart
FrancYescO commented 3 years ago

if you have the possibility insert these as PR so we can go faster :D

capriele commented 3 years ago

Yes, sure. The only thing that I miss is where to place my /etc/hotplug.d/usb/60-transmission inside the repo. Do you prefer a more scripty way? So, I can update the transmission installation script in order to create this file

capriele commented 3 years ago

You can find the pull request here: link