Changeset 174 for trunk/test
- Timestamp:
- Aug 27, 2008, 5:40:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/test.sh
r172 r174 482 482 483 483 find_hostname () { 484 tmp=`hostname -f 2>/dev/null` 485 if [ $? -ne 0 ]; then 484 485 uname -a | grep Linux >/dev/null 486 if [ $? -eq 0 ]; then 487 tmp=`hostname -f 2>/dev/null` 488 if [ $? -ne 0 ]; then 489 tmp=`hostname 2>/dev/null` 490 fi 491 else 486 492 tmp=`hostname 2>/dev/null` 487 493 fi
Note:
See TracChangeset
for help on using the changeset viewer.