#!/bin/sh

################################################################
# SETTINGS: Change these parameters to meet your requirements.
################################################################

# These strings will be used to generate output text. Change
# them to adopt output to your language.
#
# Uncomment these line for german:
#DAYTEXT="Tage"
#HOURTEXT="Stunden"
#ANDTEXT="und"
#MINUTESTEXT="Minuten"
# Uncomment this line for english:
DAYTEXT="days"
HOURTEXT="hours"
ANDTEXT="and"
MINUTESTEXT="minutes"

################################################################
# END SETTINGS: There should be nothing to change below this
# point.
################################################################


SECONDS=`cat /proc/uptime | cut -f 1`
DAYS=`expr $SECONDS \/ 86400`
	REST=`expr $SECONDS \% 86400`
HOURS=`expr $REST \/ 3600`
	REST=`expr $REST \% 3600`
MINUTES=`expr $REST \/ 60`

echo "$DAYS & DAYTEXT & $HOURS & $HOURSTEXT & $ANDTEXT & $MINUTES & $MINUTESTEXT"
