Changeset 44689


Ignore:
Timestamp:
2015-03-12T11:06:08+01:00 (3 years ago)
Author:
blogic
Message:

lldpd: add support for 'readonly_mode'

Signed-off-by: Alexandru Ardelean <ardeleanalex@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/lldpd/files/lldpd.init

    r44585 r44689  
    2525        local lldp_location 
    2626        local lldp_description 
     27        local readonly_mode 
    2728 
    2829        config_load 'lldpd' 
     
    3435        config_get lldp_location 'config' 'lldp_location' 
    3536        config_get lldp_description 'config' 'lldp_description' "$(find_release_info)" 
     37        config_get_bool readonly_mode 'config' 'readonly_mode' 0 
    3638 
    3739        local ifaces 
     
    5153        [ $enable_sonmp -gt 0 ] && append args '-s' 
    5254        [ $enable_edp -gt 0 ] && append args '-e' 
     55        [ $readonly_mode -gt 0 ] && append args '-r' 
    5356 
    5457        mkdir -p /var/run/lldp 
Note: See TracChangeset for help on using the changeset viewer.