mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Fix dhcp leasefile for pptp over dhcp.
This commit is contained in:
@@ -337,13 +337,13 @@ case "${1}" in
|
||||
if [ -f "$PIDFILE" ]; then
|
||||
ps `cat "$PIDFILE"` | grep dhcpcd > /dev/null
|
||||
if [ $? != 0 ]; then
|
||||
rm -f /var/run/dhcpcd-${DEVICE}.${RED_VDSL_IPTV_VLAN}.pid > /dev/null
|
||||
rm -f /var/run/dhcpcd-${DEVICE}.pid > /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f "$PIDFILE" ]; then
|
||||
boot_mesg -n "Starting dhcpcd on the ${DEVICE} interface..."
|
||||
/sbin/dhcpcd ${DEVICE} -G ${DHCP_START} >/dev/null 2>&1
|
||||
/sbin/dhcpcd ${DEVICE} ${DHCP_START} >/dev/null 2>&1
|
||||
RET="$?"
|
||||
|
||||
if [ "$RET" = "0" ]; then
|
||||
|
||||
Reference in New Issue
Block a user