NETADDRESS=${GREEN_NETADDRESS} BROADCAST=${GREEN_BROADCAST} \
/etc/rc.d/init.d/net/common/ipv4-static ${GREEN_DEV} down
+ if [ "${ENABLE_GREEN}" == "on" ]; then
+ boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+ /etc/rc.d/init.d/net/common/dhcpd ${GREEN_DEV} down
+ fi
+
elif [ "$name" == "blue" ]; then
NAME=${name} ADDRESS=${BLUE_ADDRESS} NETMASK=${BLUE_NETMASK}\
NETADDRESS=${BLUE_NETADDRESS} BROADCAST=${BLUE_BROADCAST} \
/etc/rc.d/init.d/net/common/ipv4-static ${BLUE_DEV} down
+ if [ "${ENABLE_BLUE}" == "on" ]; then
+ boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+ /etc/rc.d/init.d/net/common/dhcpd ${BLUE_DEV} down
+ fi
+
elif [ "$name" == "orange" ]; then
NAME=${name} ADDRESS=${ORANGE_ADDRESS} NETMASK=${ORANGE_NETMASK}\
NETADDRESS=${ORANGE_NETADDRESS} BROADCAST=${ORANGE_BROADCAST} \
/etc/rc.d/init.d/net/common/ipv4-static ${ORANGE_DEV} down
+
+ if [ "${ENABLE_ORANGE}" == "on" ]; then
+ boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+ /etc/rc.d/init.d/net/common/dhcpd ${ORANGE_DEV} down
+ fi
elif [ "$name" == "red" ]; then
if [ "${RED_TYPE}" == "PPPOE" ]; then
(
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
+ eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
if [ "$name" == "green" ]; then
DEVICE="${GREEN_DEV}"
NETADDRESS=${GREEN_NETADDRESS} BROADCAST=${GREEN_BROADCAST} \
/etc/rc.d/init.d/net/common/ipv4-static ${GREEN_DEV} up
fi
+
+ if [ "${ENABLE_GREEN}" == "on" ]; then
+ boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+ /etc/rc.d/init.d/net/common/dhcpd ${GREEN_DEV} up
+ fi
elif [ "$name" == "blue" ]; then
NAME=${name} ADDRESS=${BLUE_ADDRESS} NETMASK=${BLUE_NETMASK} \
NETADDRESS=${BLUE_NETADDRESS} BROADCAST=${BLUE_BROADCAST} \
/etc/rc.d/init.d/net/common/ipv4-static ${BLUE_DEV} up
+ if [ "${ENABLE_BLUE}" == "on" ]; then
+ boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+ /etc/rc.d/init.d/net/common/dhcpd ${BLUE_DEV} up
+ fi
+
elif [ "$name" == "orange" ]; then
NAME=${name} ADDRESS=${ORANGE_ADDRESS} NETMASK=${ORANGE_NETMASK} \
NETADDRESS=${ORANGE_NETADDRESS} BROADCAST=${ORANGE_BROADCAST} \
/etc/rc.d/init.d/net/common/ipv4-static ${ORANGE_DEV} up
+ if [ "${ENABLE_ORANGE}" == "on" ]; then
+ boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+ /etc/rc.d/init.d/net/common/dhcpd ${ORANGE_DEV} up
+ fi
+
elif [ "$name" == "red" ]; then
if [ "${RED_TYPE}" == "PPPOE" ]; then
NAME=${name} /etc/rc.d/init.d/net/red/pppoe ${RED_DEV} up
case "$2" in
up)
logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been configured with old IP=${IPADDR}"
- if [ "$RED_TYPE" != 'PPTP' ]; then
touch /var/ipfire/red/active
- fi
;;
new)
logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been configured with new IP=${IPADDR}"
logger -p local0.info -t red[$$] "unlocking from $$"
exit 0
else
- if [ "$RED_TYPE" != 'PPTP' ]; then
touch /var/ipfire/red/active
- fi
fi
;;
down)