mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
Fix dhcpclient for IPTV and PPTP.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user