autossh: pass env variables on init properly
authorFlorian Fainelli <florian@openwrt.org>
Tue, 4 Dec 2012 16:21:05 +0000 (16:21 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 4 Dec 2012 16:21:05 +0000 (16:21 +0000)
commitaa7d0d85433f4d263bbff651ccb50f8d3a8882c5
treec5f5f36cd9f9d62e708d7c2baa3d1928d29047af
parent0b3698497ec651135c2376432b77eeca76cac5f9
autossh: pass env variables on init properly

Busybox's ash doesn't pass unexported environment variables to processes
started from within a function, so a service started with

MMM=xyz service_start blablabla

will never see the MMM variable.

Fix this by exporting the important variables.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34493
net/autossh/files/autossh.init