projects
/
vsorcdistro
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Scripts placed on scripts directory
[vsorcdistro/.git]
/
scripts
/
id.sh
diff --git a/scripts/id.sh
b/scripts/id.sh
new file mode 100755
(executable)
index 0000000..
1a7f042
--- /dev/null
+++ b/
scripts/id.sh
@@ -0,0
+1,7
@@
+#!/bin/bash
+: '
+Written by: Oscar J. Rodrigez
+
+This is used for have the ID of the raspberry, based to the ip
+'
+echo $(ifconfig | grep inet | grep -v inet6 | grep -v 127.0.0.7) | awk '{print $2}' | awk -F "." '{print $4}'