#!/bin/bash
conf='/m23/etc/address.override'
if [ -f $conf ]
then
	cat $conf
	exit 0
fi

cat /etc/network/interfaces | grep address | sed -e 's/.*address[ \t]*//' -e 's#/.*##' -e 's/[^0-9.]//g' | head -1