id.sh 414 Bytes
Newer Older
German Leon's avatar
German Leon committed
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#IP=$(ifconfig l4tbr0 |grep inet|head -1|cut -f2 -dt|cut -f1 -dn|cut -f2 -d\ )
#IP=$(hostname -I)
IP=$(grep net_ip= /opt/nvidia/l4t-usb-device-mode/nv-l4t-usb-device-mode-config.sh|cut -d= -f2)
HOSTID=$(hostid)
echo "=========="$IP"===========" >> id.log
echo "IP:"$IP
echo "HOSTID":$HOSTID
echo "MAC:"$(cat /sys/class/net/eth0/address)
echo "HOSTNAME:"$HOSTNAME
export $HOSTNAME
$MYHOME/bin/status.sh