summaryrefslogtreecommitdiffstats
path: root/repoman/bin/getRepoIface
diff options
context:
space:
mode:
authoradv <adv@uma.es>2018-07-05 14:11:48 +0200
committeradv <adv@uma.es>2018-07-05 14:11:48 +0200
commit3aa81a4e1e94d0cd3fc251a6ee418f9b5210c20f (patch)
tree4ba3b1d1457a5dbb92b82b6073a266f3eb0a5bed /repoman/bin/getRepoIface
parent9c811246d40a137e6f0455f1ab854242c9f849fa (diff)
parente0c7c420aacda93edcdd16e0cd6c8192ea7f2310 (diff)
Merge branch 'devel' of gituser@opengnsys.es:/git/opengnsys.git into devel
Diffstat (limited to 'repoman/bin/getRepoIface')
-rwxr-xr-xrepoman/bin/getRepoIface9
1 files changed, 9 insertions, 0 deletions
diff --git a/repoman/bin/getRepoIface b/repoman/bin/getRepoIface
new file mode 100755
index 00000000..2ce208be
--- /dev/null
+++ b/repoman/bin/getRepoIface
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# This script takes the IPlocal variable of the repository
+# and returns the system interface
+# Alfredo Luque <aluque@soleta.eu>
+
+source /opt/opengnsys/etc/ogAdmRepo.cfg
+
+ip addr show | grep $IPlocal | cut -f2 | awk '{ print $NF }'