fix setting mac address
This commit is contained in:
parent
5297860ba5
commit
72970e2c09
@ -4,11 +4,12 @@ set -eu
|
|||||||
|
|
||||||
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
||||||
TINCRC="$DIR/tincrc"
|
TINCRC="$DIR/tincrc"
|
||||||
|
MAC_ADDRESS=""
|
||||||
|
|
||||||
source "$TINCRC" || true
|
source "$TINCRC" || true
|
||||||
|
|
||||||
if [ -z "$MAC_ADDRESS" ]; then
|
if [ -n "$MAC_ADDRESS" ]; then
|
||||||
echo "Skip generating MAC: MACDDR with value '$MAC_ADDRESS' already defined in '$TINCRC'."
|
echo "Skip generating MAC: MAC_ADDRESS with value '$MAC_ADDRESS' already defined in '$TINCRC'."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
# Locally Administered Address Ranges:
|
# Locally Administered Address Ranges:
|
||||||
|
Loading…
Reference in New Issue
Block a user