]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rtcwake: read accepted mode strings from /sys/power/state
authorSami Kerola <kerolasa@iki.fi>
Sun, 11 Jan 2015 09:37:59 +0000 (09:37 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 29 Jun 2015 11:39:37 +0000 (13:39 +0200)
commitf87b73ab44dc6273d9c89a0bf7f3a04c1ebfdd4b
tree1e4f5574eb4ee6a9729d188ec5ca424bf9336acb
parent254e9e58b7bb73ab2a45b28d29358a96e3e7a9b4
rtcwake: read accepted mode strings from /sys/power/state

The rtcwake has various mode names that are internal to the command,
listed in rtcwake_mode_string array, while some modes are dynamicaly
listed in /sys/power/state.  Together these form the allowed modes.

[kzak@redhat.com: - cleanup strv usage]

Reviewed-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/rtcwake.c