Changeset 4987 in genesis for tools


Ignore:
Timestamp:
Nov 2, 2005, 5:53:08 PM (19 years ago)
Author:
rick
Message:

Fixed diff functie

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/config-node.sh

    r4986 r4987  
    2727PRETEND=no
    2828FORCE=no
     29CMD=do_move
     30
     31# Genesis master location.
     32link=${GENESIS:-http://${WHOST}/cgi-bin/g_list.pl/}
     33list=filelist
     34
     35# Location for private config
     36lcd=${LCDIR:-/lcd}
     37dir=${lcd}
    2938
    3039FETCH=${FETCH:-/usr/bin/fetch}
     
    4150        echo "-p <proxy>        Set a proxy"
    4251        echo "-P                Use ${HTTP_PROXY_DEFAULT} as a proxy"
    43         echo "-d                Use DHCP to get an address"
     52        echo "-D                Use DHCP to get an address"
    4453        echo "-n                Show what would happen - but do not do it"
     54        echo "-d                Diff met hudiige config (maar doe niets)"
    4555        echo "-q                Suppress all output and user interaction"
    4656        echo "-F                Force disk to write"
     
    5262        case "$i"
    5363        in
    54                 -d)     connset || exit 1
     64                -D)     connset || exit 1
    5565                        ;;
    5666                -q)
    5767                        QUIET=yes
     68                        ;;
     69                -d)     
     70                        DO_CMD=do_diff
     71                        dir=${TMPDIR}
    5872                        ;;
    5973                -p)
     
    103117export HTTP_USER_AGENT
    104118export TMPDIR
    105 
    106 # Genesis master location.
    107 link=${GENESIS:-http://${WHOST}/cgi-bin/g_list.pl/}
    108 list=filelist
    109 
    110 # Location for private config
    111 lcd=${LCDIR:-/lcd}
    112119
    113120
     
    284291}
    285292
    286 dir=${lcd}
    287293
    288294
     
    304310fi
    305311
    306 CMD=do_move
    307 if [ "x$1" = "x-d" ]; then
    308   CMD=do_diff
    309   dir=${TMPDIR}
    310   shift
    311 fi
    312312
    313313if [ -r ${lcd}/myname ]; then
Note: See TracChangeset for help on using the changeset viewer.