Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 5 lines (5 sloc) 0.253 kb
1 2 3 4 5
#!/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
Something went wrong with that request. Please try again.