gameservergame-servergame-servershacktoberfestdedicated-game-serversgamelinuxgsmserverbashgaminglinuxmultiplayer-game-servershell
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
304 B
12 lines
304 B
#!/bin/bash
|
|
# LGSM fn_uptime function
|
|
# Author: Daniel Gibbs
|
|
# Website: http://danielgibbs.co.uk
|
|
# Version: 141214
|
|
# Depricated: fn_distrodetails has replaced this function.
|
|
|
|
uptime=$(</proc/uptime)
|
|
uptime=${uptime%%.*}
|
|
minutes=$(( uptime/60%60 ))
|
|
hours=$(( uptime/60/60%24 ))
|
|
days=$(( uptime/60/60/24 ))
|