Changeset 37248


Ignore:
Timestamp:
2013-07-11T19:00:54+02:00 (5 years ago)
Author:
blogic
Message:

procd: add a small script that handles config reloads until configd is ready

Signed-off-by: John Crispin <blogic@…>

Location:
trunk/package
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/init.d/boot

    r37204 r37248  
    6161 
    6262        apply_uci_config 
     63         
     64        # temporary hack until configd exists 
     65        /sbin/reload_config 
     66         
    6367        config_load system 
    6468        config_foreach system_config system 
  • trunk/package/base-files/files/etc/rc.common

    r37241 r37248  
    8181} 
    8282 
     83service_triggers() { 
     84        return 0 
     85} 
     86 
    8387stop_service() { 
    8488        return 0 
  • trunk/package/system/procd/Makefile

    r37206 r37248  
    3333 
    3434        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/{procd,askfirst,udevtrigger,logread} $(1)/sbin/ 
     35        $(INSTALL_BIN) ./files/reload_config $(1)/sbin/ 
    3536        $(INSTALL_BIN) ./files/log.init $(1)/etc/init.d/log 
    3637        $(INSTALL_DATA) ./files/hotplug*.json $(1)/etc/ 
  • trunk/package/system/procd/files/procd.sh

    r37247 r37248  
    6868_procd_close_service() { 
    6969        json_close_object 
     70        _procd_open_trigger 
     71        service_triggers 
     72        _procd_close_trigger 
    7073        _procd_ubus_call set 
    7174} 
Note: See TracChangeset for help on using the changeset viewer.