Changeset 6436


Ignore:
Timestamp:
2007-02-28T18:58:09+01:00 (9 years ago)
Author:
florian
Message:

Convert updatedd to the uci config format, add a hotplug script as well (#1213)

Location:
packages/net/updatedd
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/updatedd/Makefile

    r5624 r6436  
    114114        $(INSTALL_DIR) $(1)/etc/init.d 
    115115        $(INSTALL_BIN) ./files/ddns.init $(1)/etc/init.d/ddns 
     116        $(INSTALL_DIR) $(1)/etc/config 
     117        $(INSTALL_DATA) ./files/ddns.config $(1)/etc/config/updatedd 
    116118        $(INSTALL_DIR) $(1)/usr/bin 
    117119        $(CP) $(PKG_INSTALL_DIR)/usr/bin/updatedd $(1)/usr/bin/ 
  • packages/net/updatedd/files/ddns.init

    r5152 r6436  
    22# Copyright (C) 2006 OpenWrt.org 
    33 
     4. /etc/functions.sh 
     5 
     6config_load updatedd 
     7config_get ddns_service cfg1 ddns_service 
     8config_get ddns_user    cfg1 ddns_user 
     9config_get ddns_passwd  cfg1 ddns_passwd 
     10config_get ddns_host    cfg1 ddns_host 
     11config_get ddns_update  cfg1 ddns_update 
     12 
    413start() { 
    5         [ -f /etc/default/ddns ] && . /etc/default/ddns 
    6          
    714        [ "$ddns_update" = 1 ] && { 
    815                /usr/bin/updatedd -Y $ddns_service -- $ddns_user:$ddns_passwd $ddns_host 
     
    1320        killall updatedd 
    1421} 
     22 
     23restart() { 
     24        stop 
     25        start 
     26} 
Note: See TracChangeset for help on using the changeset viewer.