Changeset 44871 for titan/oealliance/var


Ignore:
Timestamp:
05/22/20 13:20:02 (4 years ago)
Author:
obi
Message:

add starthostname

File:
1 edited

Legend:

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

    r44824 r44871  
    183183                echo 1 > /proc/stb/fp/ledpowercolor
    184184        fi
     185}
     186
     187starthostname()
     188{
     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)
     191    MODEL=$(cat /etc/model)
     192    hostname "$MODEL ($IP)"
     193    echo "$MODEL ($IP)" > /etc/hostname
     194    /etc/init.d/samba restart
     195    /etc/init.d/vsftpd restart
     196    /etc/init.d/dropbear restart
    185197}
    186198
     
    375387                workarounds
    376388                startled
     389        starthostname
    377390                startgui;;
    378391        last)
Note: See TracChangeset for help on using the changeset viewer.