Add expected semicolons for dhclient.conf
This patch adds an expected semicolon to an end of statement in dhclient.conf for dhcp-all-interfaces element. Without this fix, an error occurs when an image is booted with a message, 'semicolon expected.'. Change-Id: I8311dbc67cc2815223111da01e7a7517c7d6f059
This commit is contained in:
parent
927e8115f6
commit
7e4e6cfff4
@ -17,9 +17,9 @@ fi
|
|||||||
if [ -f /etc/dhcp/dhclient.conf ] ; then
|
if [ -f /etc/dhcp/dhclient.conf ] ; then
|
||||||
# Set the dhclient timeout configurations to match DIB_DHCP_TIMEOUT,
|
# Set the dhclient timeout configurations to match DIB_DHCP_TIMEOUT,
|
||||||
if grep -o "^timeout " /etc/dhcp/dhclient.conf ; then
|
if grep -o "^timeout " /etc/dhcp/dhclient.conf ; then
|
||||||
sed -i -e "s/^timeout .*/# \"timeout\" Value set by dhcp-all-interfaces\ntimeout ${DIB_DHCP_TIMEOUT:-30}/" /etc/dhcp/dhclient.conf
|
sed -i -e "s/^timeout .*/# \"timeout\" Value set by dhcp-all-interfaces\ntimeout ${DIB_DHCP_TIMEOUT:-30};/" /etc/dhcp/dhclient.conf
|
||||||
else
|
else
|
||||||
echo -e "# \"timeout\" Value set by dhcp-all-interfaces\ntimeout ${DIB_DHCP_TIMEOUT:-30}" >> /etc/dhcp/dhclient.conf
|
echo -e "# \"timeout\" Value set by dhcp-all-interfaces\ntimeout ${DIB_DHCP_TIMEOUT:-30};" >> /etc/dhcp/dhclient.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user