From 5c3b0bfb5aa34e76614db03b85cd05a25e1fc522 Mon Sep 17 00:00:00 2001 From: Mykyta Dorokhin Date: Thu, 29 Sep 2016 00:42:43 +0300 Subject: mtp: add ppp UP timestamp into ip-up ppp script --- recipes-connectivity/ppp/ppp-2.4.7/ip-up | 5 +++++ recipes-connectivity/ppp/ppp_2.4.7.bb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'recipes-connectivity/ppp') diff --git a/recipes-connectivity/ppp/ppp-2.4.7/ip-up b/recipes-connectivity/ppp/ppp-2.4.7/ip-up index fc2fae9..b78e688 100755 --- a/recipes-connectivity/ppp/ppp-2.4.7/ip-up +++ b/recipes-connectivity/ppp/ppp-2.4.7/ip-up @@ -41,4 +41,9 @@ export PPP_TTYNAME run-parts /etc/ppp/ip-up.d +# save timestamp +linkuptime=$(cat /proc/uptime) +linkuptime=${linkuptime%%.*} +echo "$linkuptime" > /var/run/pppisup-$PPP_IFACE.sec + # last line diff --git a/recipes-connectivity/ppp/ppp_2.4.7.bb b/recipes-connectivity/ppp/ppp_2.4.7.bb index 8a94318..881c40e 100644 --- a/recipes-connectivity/ppp/ppp_2.4.7.bb +++ b/recipes-connectivity/ppp/ppp_2.4.7.bb @@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://pppd/ccp.c;beginline=1;endline=29;md5=e2c43fe6e81ff77 file://pppd/plugins/passprompt.c;beginline=1;endline=10;md5=3bcbcdbf0e369c9a3e0b8c8275b065d8 \ file://pppd/tdb.c;beginline=1;endline=27;md5=4ca3a9991b011038d085d6675ae7c4e6 \ file://chat/chat.c;beginline=1;endline=15;md5=0d374b8545ee5c62d7aff1acbd38add2" -PR = "r7" +PR = "r8" SRC_URI = "http://ppp.samba.org/ftp/ppp/ppp-${PV}.tar.gz \ file://makefile.patch \ -- cgit v1.2.3