Changeset 4050 in genesis
- Timestamp:
- Mar 14, 2005, 1:43:01 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/config-node.sh
r4049 r4050 9 9 # If there is a global system configuration file, suck it in. 10 10 # 11 12 if [ -z ${QUIET} ]; then 13 echo "Using..." 14 echo "no proxy" 15 echo "no dhclient" 16 echo "config `hostname -s`" 17 sleep 1 18 fi 19 11 20 if [ -r /etc/defaults/rc.conf ]; then 12 21 . /etc/defaults/rc.conf … … 19 28 TMPDIR=${TMPDIR:-/tmp} 20 29 TMPPREFIX=${TMPDIR}/wl-tmp-$$ 21 WHOST=${WHOST:- wleiden.net}30 WHOST=${WHOST:-rambo.wleiden.net} 22 31 HTTP_PROXY=${HTTP_PROXY:-http://proxy.wleiden.net:3128} 23 32 HTTP_USER_AGENT=${HTTP_USER_AGENT:-curl.faked.fetch/0.0} … … 29 38 echo "if don't want a proxy enter n " 30 39 31 read proxyset 40 if [ -z ${QUIET} ]; then 41 read proxyset 42 else 43 proxyset="n" 44 fi 32 45 33 46 case $proxyset in … … 128 141 echo "enter n to not use dhclient for configuration ! " 129 142 130 read nic_dhcp 131 143 if [ -z ${QUIET} ]; then 144 read nic_dhcp 145 else 146 nic_dhcp="n" 147 fi 132 148 if [ "x${nic_dhcp}" = "xn" ] ; then 133 149 echo proceding... … … 193 209 echo 194 210 echo -n enter nodename \[default: ${default}\]: 195 read nodename 211 if [ -z ${QUIET} ]; then 212 read nodename 213 else 214 nodename=${default} 215 fi 196 216 197 217 if [ "x${nodename}" = "x" ]; then … … 212 232 213 233 do_move() { 234 rm ${dir}/${i}.bak 235 mv ${dir}/${i} ${dir}/${i}.bak \ 236 || cleanexit 1 237 log backuped ${dir}/${i} 214 238 215 239 mv ${dir}/${i}.new ${dir}/${i} \ 216 240 || 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} 241 updated ${dir}/${i} 237 242 } 238 243
Note:
See TracChangeset
for help on using the changeset viewer.