fix setting mac address

This commit is contained in:
root 2015-01-25 19:06:01 +00:00
parent 5297860ba5
commit 72970e2c09

View File

@ -4,11 +4,12 @@ set -eu
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
TINCRC="$DIR/tincrc"
MAC_ADDRESS=""
source "$TINCRC" || true
if [ -z "$MAC_ADDRESS" ]; then
echo "Skip generating MAC: MACDDR with value '$MAC_ADDRESS' already defined in '$TINCRC'."
if [ -n "$MAC_ADDRESS" ]; then
echo "Skip generating MAC: MAC_ADDRESS with value '$MAC_ADDRESS' already defined in '$TINCRC'."
exit 1
else
# Locally Administered Address Ranges: