- Timestamp:
- Nov 5, 2005, 11:36:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/config-node.sh
r4997 r5001 15 15 # 1.05 Cope with WHOST containing a port number. (dirkx). 16 16 # 1.06 Better diff (dirkx) 17 # 1.07 Check versions of OS and Script 17 18 # 18 19 # If there is a global system configuration file, suck it in. … … 30 31 FORCE=no 31 32 CMD=do_move 33 DLV=no 32 34 33 35 # Genesis master location. … … 57 59 echo "-q Suppress all output and user interaction" 58 60 echo "-F Force disk to write" 61 echo "-i Ignore all safety checks checks" 59 62 exit 1 60 63 } … … 69 72 QUIET=yes 70 73 ;; 74 -i) 75 DLV= 76 ;; 71 77 -d) 72 78 CMD=do_diff … … 97 103 done 98 104 99 100 105 HOST=`echo ${WHOST} | sed -e 's/:.*//'` 106 set `echo $VERSION | sed -e 's/\./ /'` 107 VERSION_MAJOR=$1 108 VERSION_MINOR=$2 109 VERSION_OTHER=$3 101 110 102 111 # connection test function … … 248 257 diff -uwbB $lcd/$1 $1.new 249 258 else 250 echo Warning: $ 1 does not yet exist - no DIFF259 echo Warning: $lcd/$1 does not yet exist - no DIFF 251 260 fi 252 261 } … … 354 363 done 355 364 365 log Checking release and OS versions 366 367 safefetch ${link}${nodename}/info > $dir/${i} \ 368 || cleanexit 1 369 370 OS=`uname -s` 371 REL=`uname -r` 372 set `head -1 $dir/${i} 373 # FreeBSD 5.0-RELEASE 1 YES 374 if [ $# != 4 ]; then 375 echo Info verification failed. 376 cleanexit 1 377 fi 378 if [ $4 -ne 'YES' ]; then 379 echo Genesis marked as disabled for this machine. 380 test -z ${DLV} || cleanexit 1 381 fi 382 if [ $3 -ne $VERSION_MAJOR' ]; then 383 echo This script is version $VERSION, genesis info is for version $3.xx 384 test -z ${DLV} || cleanexit 1 385 fi 386 if [ $1 -ne $OS ]; then 387 echo Operating system mismatch; this machine: $OS, but config is for $1 388 test -z ${DLV} || cleanexit 1 389 fi 390 if [ $2 -ne $REL ]; then 391 echo This machine runs $REL, but the configuration is for $2 392 test -z ${DLV} || cleanexit 2 393 fi 394 356 395 log Fetching file list from $link for $nodename 357 396
Note:
See TracChangeset
for help on using the changeset viewer.