Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
German Leon
Irradiar
Commits
2e1b254a
Commit
2e1b254a
authored
Mar 30, 2022
by
German Leon
Browse files
Primera desde jn2
parent
8b3090e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/id.sh
0 → 100755
View file @
2e1b254a
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment