Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 6 lines (5 sloc) 253 Bytes
#!/bin/bash
myip=$(ip -4 addr show dev eth0 | awk '/inet / {sub(/\/.*/, "", $2); print $2}' | head -n 1)
echo "<define name=\"bindip\" value=\"${myip}\">"
echo "<define name=\"hostname\" value=\"$(hostname -f)\">"
#[ -s 'local.conf' ] && cat local.conf