#!/bin/sh
############################################################
#
# Write /etc/dhcp/dhclient.conf with ma1 client-id.
#
############################################################
MA1_MAC=${MA1_MAC:-$(cat /sys/class/net/ma1/address)}
DHCLIENT_CONF=${DHCLIENT_CONF:-/etc/dhcp/dhclient.conf}

echo "interface \"ma1\" {" >> $DHCLIENT_CONF
echo "    send dhcp-client-identifier 01:$MA1_MAC;" >> $DHCLIENT_CONF
echo "}" >> $DHCLIENT_CONF






