Changeset 34493


Ignore:
Timestamp:
2012-12-04T17:21:05+01:00 (5 years ago)
Author:
florian
Message:

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@…>
Signed-off-by: Florian Fainelli <florian@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/autossh/files/autossh.init

    r30349 r34493  
    1212        config_get poll "$section" 'poll' 
    1313 
    14         AUTOSSH_GATETIME="${gatetime:-30}" \ 
    15         AUTOSSH_POLL="${poll:-600}" \ 
     14        export AUTOSSH_GATETIME="${gatetime:-30}" 
     15        export AUTOSSH_POLL="${poll:-600}" 
    1616        service_start /usr/sbin/autossh -M ${monitorport:-20000} -f ${ssh} 
    1717} 
Note: See TracChangeset for help on using the changeset viewer.