Rev | Line | |
---|
[a80bf33] | 1 | Test para la librería Net.lib No modifica |
---|
| 2 | ========================================= |
---|
| 3 | $ if [ "$(ogGetHostname)" == "$(hostname)" ] ; then echo si; else echo no; fi |
---|
| 4 | si |
---|
| 5 | |
---|
| 6 | $ if [ "$(ogGetNetInterface)" == "$(ifconfig|head -1|cut -d\ -f1 )" ]; then echo si; else echo no; fi |
---|
| 7 | si |
---|
| 8 | |
---|
| 9 | $ AUX=$(ifconfig eth0|grep 'inet addr'|cut -dB -f1|sed s/\ //g); if [ "$(ogGetIpAddress)" == "${AUX#*:}" ]; then echo si; else echo no; fi |
---|
| 10 | si |
---|
| 11 | |
---|
| 12 | $ AUX=$(ifconfig |head -1|sed s/\ //g| tr '[a-z]' '[A-Z]'); if [ "$(ogGetMacAddress)" == "${AUX##*HWADDR}" ]; then echo si; else echo no; fi |
---|
| 13 | si |
---|
| 14 | |
---|
| 15 | $ AUX=$(df|grep $OGIMG); if [ "//$(ogGetRepoIp)" == "${AUX%/ogimages*}" ]; then echo si; else echo no; fi |
---|
| 16 | si |
---|
| 17 | |
---|
| 18 | $ AUX=$(df|grep $OGIMG); if [ "//$(ogGetServerIp)" == "${AUX%/ogimages*}" ]; then echo si; else echo no; fi |
---|
| 19 | si |
---|
| 20 | |
---|
| 21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.