(
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
+ if [ "$name" == "green" ]; then
+ DEVICE="${GREEN_DEV}"
+ elif [ "$name" == "blue" ]; then
+ DEVICE="${BLUE_DEV}"
+ elif [ "$name" == "orange" ]; then
+ DEVICE="${ORANGE_DEV}"
+ elif [ "$name" == "red" ]; then
+ DEVICE="${RED_DEV}"
+ fi
+
# Check if an interface is there...
if ip link show ${DEVICE} > /dev/null 2>&1; then
link_status=`ip link show ${DEVICE} 2> /dev/null`
echo
elif [ "${RED_TYPE}" == "DHCP" ]; then
NAME=${name} DHCP_HOSTNAME=${RED_DHCP_HOSTNAME} \
+ DNS1=${DNS1} DNS2=${DNS2} \
PRINTIP=yes PRINTALL=yes \
/etc/rc.d/init.d/net/common/dhcpcd ${RED_DEV} up
elif [ "${RED_TYPE}" == "STATIC" ]; then
NAME=${name} ADDRESS=${RED_ADDRESS} NETMASK=${RED_NETMASK} \
NETADDRESS=${RED_NETADDRESS} BROADCAST=${RED_BROADCAST} \
- DNS1=${DNS1} DNS2=${DNS2} GATEWAY=${DEFAULT_GATEWAY}
+ DNS1=${DNS1} DNS2=${DNS2} GATEWAY=${DEFAULT_GATEWAY} \
/etc/rc.d/init.d/net/common/ipv4-static ${RED_DEV} up
fi
- fi
+
+ /usr/local/bin/dialctrl.pl up
+ /etc/rc.d/init.d/net/red/update
+fi
+
)
# End $network_devices/ifup