I'm running a:
root@mygateway:~/trafficmon# cat /rom/etc/config/env
config envvars 'var'
option company_name 'Technicolor'
option prod_friendly_name 'Technicolor TG800vac'
option CONF_VERSION 'CRF779'
option provisioning_code 'Telstra'
option logfilter 'ALL'
option variant_friendly_name 'TG800vac'
option prod_name 'Technicolor TG'
option prod_number '800vac'
option ssid_prefix 'Telstra'
option rtfds '1'
With this release:
# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Chaos Calmer'
DISTRIB_REVISION='r46610'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='brcm63xx-tch/VANTY'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer 15.05.1'
DISTRIB_TAINTS='no-all busybox'
I want to log my broadband usage each month and I'd like some help to combine the following as a script so I can put it in the crontab file:
grep 'br-lan' /root/trafficmon/check_data | sed -e "s/^/$(date -R) /"
and
date +"%Y/%m/%d_%H:%M:%S"