exit 1
fi
fi
+
+ ## Create/Update vnstat
+ /usr/bin/vnstat -u -i ${DEVICE} --force > /dev/null 2>&1
if [ "${TYPE}" == "STATIC" ]; then
evaluate_retval
# echo PPP: /usr/sbin/pppd pty "$PPPOE_CMD" $PPP_STD_OPTIONS $DEBUG $DEMAND $PPPD_SYNC
fi
-
+ ## Create/Update vnstat
+ /usr/bin/vnstat -u -i ppp0 --force > /dev/null 2>&1
/etc/rc.d/init.d/connectd start
fi
elif [ "$TYPE" == "PPPOE" ]; then
boot_mesg "Bringing down the PPP interface ..."
+ ## Update vnstat
+ /usr/bin/vnstat -u -i ppp0 > /dev/null 2>&1
rm -f /var/ipfire/red/keepconnected
killall -w -s TERM /usr/sbin/pppd 2>/dev/null
evaluate_retval
killall -w -s KILL /usr/sbin/pppd >/dev/null 2>&1
killall -w -s KILL br2684ctl >/dev/null 2>&1
rm -f /var/ipfire/red/{active,device,dial-on-demand,dns1,dns2,local-ipaddress,remote-ipaddress,resolv.conf}
+
+ ## Update vnstat
+ /usr/bin/vnstat -u -i ${DEVICE} > /dev/null 2>&1
+ exit 0;
;;
-
esac
# End