summaryrefslogtreecommitdiff
path: root/recipes-connectivity/ppp/ppp-2.4.7/ip-up
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/ppp/ppp-2.4.7/ip-up')
-rwxr-xr-xrecipes-connectivity/ppp/ppp-2.4.7/ip-up5
1 files changed, 5 insertions, 0 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