corrected some syntax errors
This commit is contained in:
@@ -33,7 +33,7 @@ conf_network()
|
||||
|
||||
# First configure IPv4 ifaces
|
||||
local iface=
|
||||
for iface in $IPV4_IFACES; then
|
||||
for iface in $IPV4_IFACES; do
|
||||
echo -e "\n# --------------------------------\n" >> $if_file
|
||||
if [[ $(eval echo \$NET4_MODE_$iface) == manual ]]; then
|
||||
prnt I "Configuring IPv4 network interface $iface in static mode..."
|
||||
@@ -49,7 +49,7 @@ conf_network()
|
||||
if [[ -n $(eval echo \$NET4_NS_SEARCH_$iface) ]]; then
|
||||
echo -e "\tdns_search $(eval echo \$NET4_NS_SEARCH_$iface)" >> $if_file
|
||||
fi
|
||||
elif [[ $(eval echo \$NET4_MODE_$iface) == dhcp ]]
|
||||
elif [[ $(eval echo \$NET4_MODE_$iface) == dhcp ]]; then
|
||||
prnt I "Configuring IPv4 network interface $iface in DHCP mode..."
|
||||
echo "auto $iface" >> $if_file
|
||||
echo "iface $iface inet dhcp" >> $if_file
|
||||
@@ -60,7 +60,7 @@ conf_network()
|
||||
fi
|
||||
done
|
||||
|
||||
for iface in $IPV6_IFACES; then
|
||||
for iface in $IPV6_IFACES; do
|
||||
echo -e "\n# --------------------------------\n" >> $if_file
|
||||
if [[ $(eval echo \$NET6_MODE_$iface) == manual ]]; then
|
||||
prnt I "Configuring IPv6 network interface $iface in static mode..."
|
||||
@@ -76,11 +76,10 @@ conf_network()
|
||||
if [[ -n $(eval echo \$NET6_NS_SEARCH_$iface) ]]; then
|
||||
echo -e "\tdns_search $(eval echo \$NET6_NS_SEARCH_$iface)" >> $if_file
|
||||
fi
|
||||
elif [[ $(eval echo \$NET6_MODE_$iface) == dhcp ]]
|
||||
elif [[ $(eval echo \$NET6_MODE_$iface) == dhcp ]]; then
|
||||
prnt I "Configuring IPv6 network interface $iface in DHCP mode..."
|
||||
echo "auto $iface" >> $if_file
|
||||
echo "iface $iface inet6 dhcp" >> $if_file
|
||||
fi
|
||||
elif [[ $(eval echo \$NET6_MODE_$iface) == manual ]]; then
|
||||
local fname=$(eval echo \$NET6_MANUAL_FILE_$iface)
|
||||
appendfile $fname $if_file
|
||||
|
||||
Reference in New Issue
Block a user