gagle / raspberrypi-motd

Message of the Day for the Raspberry Pi.
MIT License
194 stars 75 forks source link

universal uptime support #1

Closed gelstudios closed 10 years ago

gelstudios commented 10 years ago

Reads uptime from /proc/uptime. Calculates an uptime string with new function sec2time. Feel free to change output string of sec2time, currently it will print something like: "2 Days, 2 Hours, 32 Minutes, 29 Seconds"

gagle commented 10 years ago

Added along with http://www.reddit.com/r/raspberry_pi/comments/1xx0vn/message_of_the_day_login_message_in_pure_bash/cfg5q28

Thanks!