Fix dhcpclient for IPTV and PPTP.

This commit is contained in:
Arne Fitzenreiter
2009-10-06 23:18:42 +02:00
parent d66c870e34
commit c3f872da4a

View File

@@ -257,11 +257,11 @@ case "${1}" in
sleep 0.2
ip link set ${PPP_NIC} up
TYPE="pppoe"
if [ "${RED_VDSL_IPTV_DISABLE}" == "0" ]; then
PIDFILE="/var/run/dhcpcd-${DEVICE}.${RED_VDSL_IPTV_VLAN}.pid"
LEASEINFO="/var/ipfire/dhcpc/dhcpcd-${DEVICE}.${RED_VDSL_IPTV_VLAN}.info"
DHCP_START="-N -R -L /var/ipfire/dhcpc "
DHCP_STOP="-k "
# Test to see if there is a stale pid file
if [ -f "$PIDFILE" ]; then
ps `cat "$PIDFILE"` | grep dhcpcd > /dev/null
@@ -330,6 +330,8 @@ case "${1}" in
ip addr flush dev $PPP_NIC >/dev/null 2>&1
if [ "$TYPE" == "pptp" ]; then
if [ "$PPTP_NICCFG" == "dhcp" ]; then
DHCP_START="-N -R -L /var/ipfire/dhcpc "
DHCP_STOP="-k "
# Test to see if there is a stale pid file
if [ -f "$PIDFILE" ]; then