ifgateway="$(echo ${ifline} | cut -f4 -d ',')"
cat >> "${IFFILE}" << EOF
-allow-hotplug ${ifname}
+auto ${ifname}
iface ${ifname} inet static
address ${ifaddress}
netmask ${ifnetmask}
i="$(basename ${interface})"
cat >> "${IFFILE}" << EOF
-allow-hotplug ${i}
+auto ${i}
iface ${i} inet ${method}
EOF
# grep -q "iface ${i}" ${IFFILE} && continue
#
#cat >> "${IFFILE}" << EOF
-#allow-hotplug ${i}
+#auto ${i}
#iface ${i} inet dhcp
#
#EOF