diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2018-11-26 12:55:19 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2018-11-26 12:55:19 +0100 |
commit | de8c4ea7495184e1cb75ad518a1970340dc88f93 (patch) | |
tree | 8b47e8dd395fdc7be46466979365e56a5abcccd4 /server | |
parent | 518d4d84f755185f224c82d5cc3f49b350af4b05 (diff) |
#878 sendFileMcast now works with more than one server interface
Diffstat (limited to 'server')
-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 }' |