]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/networking/red
Added some custom patches for openswan
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / networking / red
index 62fd77956486314fdd55fb4d9ff1b8b479fa3a72..1ed52ddf3242a2e72be03523bc75f0c589e82365 100644 (file)
@@ -109,8 +109,8 @@ case "${1}" in
                        iptables -A REDINPUT -p tcp --source-port 67 --destination-port 68 -i ${DEVICE} -j ACCEPT
                        iptables -A REDINPUT -p udp --source-port 67 --destination-port 68 -i ${DEVICE} -j ACCEPT
                        
-                       if [ -n "${DHCP_HOSTNAME}" ]; then
-                               DHCP_START+="-h ${DHCP_HOSTNAME} "
+                       if [ -n "${RED_DHCP_HOSTNAME}" ]; then
+                               DHCP_START+="-h ${RED_DHCP_HOSTNAME} "
                fi
                
                /sbin/dhcpcd ${DEVICE} ${DHCP_START} >/dev/null 2>&1
@@ -124,8 +124,8 @@ case "${1}" in
                                boot_mesg_flush
                                boot_mesg "           IP Address:      $IPADDR"
                                boot_mesg_flush
-                               if [ -n "${DHCP_HOSTNAME}" ]; then
-                                       boot_mesg "           Hostname:        $DHCP_HOSTNAME"
+                               if [ -n "${RED_DHCP_HOSTNAME}" ]; then
+                                       boot_mesg "           Hostname:        $RED_DHCP_HOSTNAME"
                                        boot_mesg_flush
                                fi
                                boot_mesg "           Subnet Mask:     $NETMASK"