summaryrefslogtreecommitdiff
path: root/recipes-connectivity/ppp
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-09-29 00:42:43 +0300
committerBrandon Bayer <bbayer@multitech.com>2016-10-26 15:36:30 -0500
commit5c3b0bfb5aa34e76614db03b85cd05a25e1fc522 (patch)
tree2a2c532e064237aa1dd33a01b55890c9b5d96806 /recipes-connectivity/ppp
parent8d54b0ff470aaa53cae0640f9093eff0b781202c (diff)
downloadmeta-mlinux-5c3b0bfb5aa34e76614db03b85cd05a25e1fc522.tar.gz
meta-mlinux-5c3b0bfb5aa34e76614db03b85cd05a25e1fc522.tar.bz2
meta-mlinux-5c3b0bfb5aa34e76614db03b85cd05a25e1fc522.zip
mtp: add ppp UP timestamp into ip-up ppp script
Diffstat (limited to 'recipes-connectivity/ppp')
-rwxr-xr-xrecipes-connectivity/ppp/ppp-2.4.7/ip-up5
-rw-r--r--recipes-connectivity/ppp/ppp_2.4.7.bb2
2 files changed, 6 insertions, 1 deletions
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 \