Changeset 18336


Ignore:
Timestamp:
09/10/15 15:49:06 (9 years ago)
Author:
daqct3
Message:
Changed finding of own IP address in Logon script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/Scripts/Logon

    r18178 r18336  
    44# Set environment variables if not yet set
    55if [ -z "$DIM_DNS_NODE" ]; then export DIM_DNS_NODE=ihp-pc49.ethz.ch; fi
    6 if [ -z "$DIM_HOST_NODE" ]; then export DIM_HOST_NODE=`hostname -I`; fi
     6if [ -z "$DIM_HOST_NODE" ]; then export DIM_HOST_NODE=`ip route get 8.8.8.8 | awk '{print $NF; exit}'`; fi
    77if [ -z "$DIMDIR" ]; then export DIMDIR=/usr/local/dim/; fi
    88if [ -z "$QWTDIR" ]; then export QWTDIR=/usr/local/qwt/; fi
Note: See TracChangeset for help on using the changeset viewer.