sxmo_suspend.sh: output formatting improvements
This commit is contained in:
parent
6b6a9504e4
commit
0293773e64
|
@ -19,8 +19,11 @@ sudo rtl8723cs-wowlan arp --dest-ip 10.78.79.54
|
|||
|
||||
echo "calling suspend for duration: $suspend_time"
|
||||
|
||||
# XXX: run this in `env` to get the `time` binary instead of the builtin
|
||||
echo "suspended for: $(env time -f "%e" rtcwake -m mem -s $suspend_time) seconds" || exit 1
|
||||
start=$(date "+%s")
|
||||
rtcwake -m mem -s "$suspend_time" || exit 1
|
||||
end=$(date "+%s")
|
||||
duration=$(("$end" - "$start")
|
||||
echo "suspended for $duration seconds"
|
||||
|
||||
sxmo_hook_postwake.sh
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user