mixer: Allow arbitrary relative time for sleep subcommand.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 27 Dec 2016 23:53:29 +0000 (00:53 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Mar 2017 09:04:05 +0000 (11:04 +0200)
commitc37b0175de9a871649074c9e08681dd6511102e9
tree1b9b826550bd39272938792c21505bd9706aeaf1
parent7031f4e380b429e9c0eea1b8e5484dabdbb12ae5
mixer: Allow arbitrary relative time for sleep subcommand.

If --wake-hour is not given, the wake time defaults to now + nine
hours.  This is arbitrary, and the constant 9 was hardcoded with no
way to specify it at the command line or in the config file.

This commit replaces --wake-hour and --wake-min by --wake-time whose
argument must be given in HH:MM syntax. An optional leading '+'
character allows to specify a relative offset.
m4/lls/mixer.suite.m4
mixer.c