1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix bug of init.d script

This commit is contained in:
winlin 2014-03-23 11:25:42 +08:00
parent 2e1aed5403
commit 4ddb5256ac
4 changed files with 31 additions and 5 deletions

6
trunk/auto/local_ip.sh Executable file
View file

@ -0,0 +1,6 @@
ip=`ifconfig 2>&1|grep 'inet addr'|grep -v '127.0.0.1'|awk 'NR==1 {print $2}'|awk -F ':' '{print $2}'`
if [[ -z $ip ]]; then
echo "localhost"
else
echo $ip
fi