Changeset 44878


Ignore:
Timestamp:
05/22/20 23:20:14 (4 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/oealliance/var/etc/autostart/start.sh

    r44874 r44878  
    187187starthostname()
    188188{
    189     IP=$(ifconfig | grep inet | grep Bcast | awk '{print $2}' | cut -d":" -f2 | tr '.' '-')
    190 #    IP=$(ifconfig | grep inet | grep Bcast | awk '{print $2}' | cut -d":" -f2)
     189#    IP=$(ifconfig | grep inet | grep Bcast | awk '{print $2}' | cut -d":" -f2 | tr '.' '-')
     190    IP=$(ifconfig | grep inet | grep Bcast | awk '{print $2}' | cut -d":" -f2 | cut -d"." -f4)
    191191    MODEL=$(cat /etc/model)
    192192#    hostname "$MODEL ($IP)"
Note: See TracChangeset for help on using the changeset viewer.