diff options
Diffstat (limited to 'server/bin/getRepoIface')
-rwxr-xr-x | server/bin/getRepoIface | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/bin/getRepoIface b/server/bin/getRepoIface new file mode 100755 index 00000000..2ce208be --- /dev/null +++ b/server/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 }' |