Changeset 4988 in genesis
- Timestamp:
- Nov 2, 2005, 6:00:06 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/config-node.sh
r4987 r4988 68 68 ;; 69 69 -d) 70 DO_CMD=do_diff70 CMD=do_diff 71 71 dir=${TMPDIR} 72 72 ;; … … 95 95 done 96 96 97 echo Config Node -- Version: $VERSION '$Rev$'98 99 # Make sure we clean up our mess when needed.100 trap "rm -f ${TMPPREFIX}.?; echo Failed; exit 1;" 2 3101 102 if [ ${PRETEND} != 'yes' ]; then103 if mount | grep "on / " | grep -q read-only; then104 if [ ${FORCE} = "yes" ]; then105 echo Forcing read-only disk into rw.106 fsck / || exit 2107 mount -o noatime -u -w / || exit 2 || exit 1108 trap "mount -u -r /; rm -f ${TMPPREFIX}.?; echo Failed; exit 1;" 2 3109 FORCE=rw110 else111 echo ERROR - disk / is mounted read only. Aborting.112 exit 1113 fi114 fi115 fi116 117 export HTTP_USER_AGENT118 export TMPDIR119 97 120 98 … … 291 269 } 292 270 271 log Config Node -- Version: $VERSION '$Rev$' 272 273 # Make sure we clean up our mess when needed. 274 trap "rm -f ${TMPPREFIX}.?; echo Failed; exit 1;" 2 3 275 276 if [ ${PRETEND} != 'yes' ]; then 277 if mount | grep "on / " | grep -q read-only; then 278 if [ ${FORCE} = "yes" ]; then 279 echo Forcing read-only disk into rw. 280 fsck / || exit 2 281 mount -o noatime -u -w / || exit 2 || exit 1 282 trap "mount -u -r /; rm -f ${TMPPREFIX}.?; echo Failed; exit 1;" 2 3 283 FORCE=rw 284 else 285 echo ERROR - disk / is mounted read only. Aborting. 286 exit 1 287 fi 288 fi 289 fi 290 291 export HTTP_USER_AGENT 292 export TMPDIR 293 293 294 294 … … 310 310 fi 311 311 312 313 312 if [ -r ${lcd}/myname ]; then 314 313 default=`cat ${lcd}/myname` … … 316 315 default=`hostname -s` 317 316 test -z $default && default=none 317 fi 318 319 if [ ! -z ${QUIET} -a -z ${nodename} ]; then 320 nodename=${default} 318 321 fi 319 322
Note:
See TracChangeset
for help on using the changeset viewer.