User Tools

Site Tools


unix:networking:openwrt_routing:notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

unix:networking:openwrt_routing:notes [2014/04/30 04:17]
ben created
unix:networking:openwrt_routing:notes [2014/04/30 04:21] (current)
ben [Port Forwarding with PIA]
Line 421: Line 421:
  
 Last step is creating the script to do the HUP.  Key created with ''​dropbearkey -t rsa -f ~/​.ssh/​id_rsa'',​ ssh-keygen does not exist in busybox. Last step is creating the script to do the HUP.  Key created with ''​dropbearkey -t rsa -f ~/​.ssh/​id_rsa'',​ ssh-keygen does not exist in busybox.
 +
 +Here's what I came up with:
 +<​code>​
 +root@wifi1:/​opt/​etc/​scripts#​ more transmission_port_update.sh ​
 +#!/bin/sh
 +echo $1 to $2
 +ssh -i /​opt/​etc/​pia/​id_rsa root@nas.benhall.com cp /​etc/​transmission-daemon/​settings.json /​etc/​transmission-daemon/​settings.json.bak
 +ssh -i /​opt/​etc/​pia/​id_rsa root@nas.benhall.com "cat /​etc/​transmission-daemon/​settings.json.bak | sed -e s#\:\ $1,#\:\ $2,#g > /​etc/​transmission-daemon/​settings.json"​
 +ssh -i /​opt/​etc/​pia/​id_rsa root@nas.benhall.com killall -HUP transmission-daemon
 +
 +</​code>​
 +
 +
unix/networking/openwrt_routing/notes.1398845858.txt.gz ยท Last modified: 2014/04/30 04:17 by ben