Show
Ignore:
Timestamp:
01/28/09 19:17:41 (4 years ago)
Author:
jow
Message:

modules/admin-core: add autogeneartion notice to /var/etc/hosts, /var/etc/ethers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-core/root/etc/init.d/luci_ethers

    r3395 r4174  
    99 
    1010    [ -n "$macaddr" -a -n "$ipaddr" ] || return 0 
    11      
     11 
    1212    echo "$macaddr $ipaddr" >> /var/etc/ethers 
    1313} 
     
    2020 
    2121    test -d /var/etc || mkdir -p /var/etc 
    22      
     22 
     23    echo "# This file is autogenerated, use /etc/ethers.local instead" > /var/etc/ethers 
     24 
    2325    config_load luci_ethers 
    2426    config_foreach apply_lease static_lease 
    25      
     27 
    2628    test -f /etc/ethers.local && cat /etc/ethers.local >> /var/etc/ethers 
    27      
     29 
    2830    return 0 
    2931} 
     
    3133stop() { 
    3234    test -f /var/etc/ethers && rm -f /var/etc/ethers 
    33      
     35 
    3436    return 0 
    3537}