Ignore:
Timestamp:
Apr 9, 2012, 10:49:47 AM (13 years ago)
Author:
rick
Message:

Allow fetching the dhcpd.conf files and make sure to diff the proper way...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-9.0/nanobsd/files/tools/wl-config

    r10185 r10409  
    3232# Determine it's statup and running location and some other hints
    3333# Skip named.conf as it not planned in current release
    34 FILES="authorized_keys dnsmasq.conf rc.conf.local resolv.conf wleiden.yaml"
     34FILES="authorized_keys dhcpd.conf dnsmasq.conf rc.conf.local resolv.conf wleiden.yaml"
    3535file_details() {
    3636  case "$1" in
     
    4040     FILE_HINT=""
    4141   ;;
     42  'dhcpd.conf')
     43     STARTUP_LOC="/cfg/local/${FILE}"
     44     RUNNING_LOC="/etc/local/${FILE}"
     45     FILE_HINT="service isc-dhcpd restart"
     46   ;;
    4247  'dnsmasq.conf')
    4348     STARTUP_LOC="/cfg/local/${FILE}"
    4449     RUNNING_LOC="/etc/local/${FILE}"
    45      FILE_HINT="/usr/local/etc/rc.d/dnsmasq restart"
     50     FILE_HINT="service dnsmasq restart"
    4651   ;;
    4752  'named.conf')
    4853     STARTUP_LOC="/cfg/namedb/${FILE}"
    4954     RUNNING_LOC="/etc/namedb/${FILE}"
    50      FILE_HINT="/etc/rc.d/named restart"
     55     FILE_HINT="service named restart"
    5156   ;;
    5257  'rc.conf.local')
    5358     STARTUP_LOC="/cfg/${FILE}"
    5459     RUNNING_LOC="/etc/${FILE}"
    55      FILE_HINT="/etc/rc.d/netif restart"
     60     FILE_HINT="service netif restart"
    5661   ;;
    5762   'resolv.conf')
     
    193198  SOURCE=$1
    194199  TARGET=$2
    195   diff -I '^# Generated at ' ${SOURCE} ${TARGET} 2>/dev/null
     200  diff -I '^# Generated at ' ${TARGET} ${SOURCE} 2>/dev/null
    196201  if [ $? -ne 0 ]; then
    197202    mkdir -p `dirname ${TARGET}` || exit 1
Note: See TracChangeset for help on using the changeset viewer.