magic number: make 8 years in seconds a constant
This commit is contained in:
parent
11f2777e0f
commit
23acd8a8c2
1 changed files with 4 additions and 2 deletions
|
@ -131,8 +131,10 @@ elif [ "$1" = "crust" ] ; then
|
||||||
|
|
||||||
xset dpms force off
|
xset dpms force off
|
||||||
suspend_time="$(($(mnc)-10))"
|
suspend_time="$(($(mnc)-10))"
|
||||||
if [ "$suspend_time" -gt 268435455 ]; then
|
|
||||||
suspend_time=268435455
|
YEARS8_TO_SEC=268435455
|
||||||
|
if [ "$suspend_time" -gt "$YEARS8_TO_SEC" ]; then
|
||||||
|
suspend_time="$YEARS8_TO_SEC"
|
||||||
fi
|
fi
|
||||||
if [ "$suspend_time" -gt 0 ]; then
|
if [ "$suspend_time" -gt 0 ]; then
|
||||||
rtcwake -m mem -s "$suspend_time"
|
rtcwake -m mem -s "$suspend_time"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue