Parcourir la source

Merge branch 'master' of https://git0.fmf.uni-lj.si/studen/websocket

Andrej Studen@Labkey-KNM il y a 1 an
Parent
commit
5bed0bbb25
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      serviceScripts/get_ip.sh

+ 5 - 0
serviceScripts/get_ip.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+IP=$(ip add show | grep -A 1 eth | sed -n 's/^.*inet \([^ ]*\) .*$/\1/p');
+
+echo $IP | sed 's%/.*$%%'