Commit Graph

4 Commits

Author SHA1 Message Date
Fidel Ramos
9242c6aa08 Pass on arguments to pre and post start/stop hooks
The start.sh and stop.sh scripts receive a set of arguments from
openvpn when invoked from tunnelUp.sh and tunnelDown.sh. They are:

 * $1: network interface for the VPN (e.g. tun0)
 * $2: interface MTU (e.g. 1500)
 * $3: link MTU (e.g. 1570)
 * $4: local IP (e.g. 10.47.10.6)
 * $5: remote IP if TUN (e.g. 10.47.10.5), network mask if TAP
 * $6: "init" or "restart"

This commit makes these arguments available in
transmission-pre-start.sh, transmission-post-start.sh,
transmission-pre-stop.sh and transmission-post-stop.sh.
2018-06-26 15:35:00 +00:00
himred
977fd4984e Update stop.sh 2018-02-08 10:27:24 +01:00
e7d
7451401980 Simplify transmission stop script 2018-01-19 15:52:47 +01:00
Kristian Haugene
553dbf628c use same script names inside and outside container. cleaner adding them as well 2015-05-24 21:54:23 +02:00