autossh: pass env variables on init properly
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 4 Dec 2012 16:21:05 +0000 (16:21 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 4 Dec 2012 16:21:05 +0000 (16:21 +0000)
commit8f6fab3fdddeb8319dfd6d8a61c89aac7601d93a
treec5f5f36cd9f9d62e708d7c2baa3d1928d29047af
parent5c4712418a660a21fa8f24962af497d8511a6c27
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>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@34493 3c298f89-4303-0410-b956-a3cf2f4a3e73
net/autossh/files/autossh.init