github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/fn/entrypoint.sh (about) 1 #!/bin/sh 2 3 HOST=$(/sbin/ip route|awk '/default/ { print $3 }') 4 5 echo "$HOST default localhost localhost.local" > /etc/hosts 6 7 /fn "$@"