Changeset 4050 in genesis


Ignore:
Timestamp:
Mar 14, 2005, 1:43:01 AM (20 years ago)
Author:
rick
Message:

Forgot to send new version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/config-node.sh

    r4049 r4050  
    99# If there is a global system configuration file, suck it in.
    1010#
     11
     12if [ -z ${QUIET} ]; then
     13  echo "Using..."
     14  echo "no proxy"
     15  echo "no dhclient"
     16  echo "config `hostname -s`"
     17  sleep 1
     18fi
     19
    1120if [ -r /etc/defaults/rc.conf ]; then
    1221        . /etc/defaults/rc.conf
     
    1928TMPDIR=${TMPDIR:-/tmp}
    2029TMPPREFIX=${TMPDIR}/wl-tmp-$$
    21 WHOST=${WHOST:-wleiden.net}
     30WHOST=${WHOST:-rambo.wleiden.net}
    2231HTTP_PROXY=${HTTP_PROXY:-http://proxy.wleiden.net:3128}
    2332HTTP_USER_AGENT=${HTTP_USER_AGENT:-curl.faked.fetch/0.0}
     
    2938echo "if don't want a proxy enter n "
    3039
    31 read proxyset
     40if [ -z  ${QUIET} ]; then
     41  read proxyset
     42else
     43  proxyset="n"
     44fi
    3245
    3346case $proxyset in
     
    128141echo "enter n to not use dhclient for configuration ! "
    129142
    130 read nic_dhcp
    131 
     143if [ -z ${QUIET} ]; then
     144  read nic_dhcp
     145else
     146  nic_dhcp="n"
     147fi
    132148if [ "x${nic_dhcp}" = "xn" ] ; then
    133149        echo proceding...
     
    193209        echo
    194210        echo -n enter nodename \[default: ${default}\]:
    195         read nodename
     211        if [ -z ${QUIET} ]; then       
     212          read nodename
     213        else
     214          nodename=${default}
     215        fi
    196216
    197217        if [ "x${nodename}" = "x" ]; then
     
    212232
    213233do_move() {
     234rm ${dir}/${i}.bak
     235mv ${dir}/${i} ${dir}/${i}.bak \
     236        || cleanexit 1
     237log backuped ${dir}/${i}
    214238
    215239mv ${dir}/${i}.new ${dir}/${i} \
    216240        || cleanexit 1
    217 
    218 mkdir -p ${symdir} \
    219         || cleanexit 1
    220 
    221 if [ -e ${symdir}/${i} ]; then
    222         mv ${symdir}/${i} ${dir}/${i}.bak \
    223                 || cleanexit 1
    224         log moved ${symdir}/${i}  to ${dir}/${i}.bak
    225 fi
    226 
    227 if [ -h ${symdir}/${i} ]; then
    228         rm ${symdir}/${i} \
    229                 || cleanexit 1
    230         log removed symlink  ${symdir}/${i}
    231 fi
    232 
    233 ln -s ${dir}/${i} ${symdir}/${i} \
    234         || cleanexit 1
    235 
    236 log symlink ${dir}/${i} to ${symdir}/${i}
     241updated ${dir}/${i}
    237242}
    238243
Note: See TracChangeset for help on using the changeset viewer.