From c002b5301faa632ba0862e82fe9904356ad0b829 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 1 Oct 2012 17:04:34 +0200 Subject: [PATCH] plugins/hwclock: Use short-form -s/-w -u to work with BusyBox hwclock as well. Signed-off-by: Joachim Nilsson --- plugins/hwclock.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/hwclock.c b/plugins/hwclock.c index b5ff0315..20382d00 100644 --- a/plugins/hwclock.c +++ b/plugins/hwclock.c @@ -28,13 +28,15 @@ static void save(void *UNUSED(arg)) { _d("Saving system clock to RTC ..."); - run_interactive("/sbin/hwclock --systohc --utc", "Saving system time (UTC) to RTC"); + /* -w,--systohc, -u,--utc */ + run_interactive("/sbin/hwclock -w -u", "Saving system time (UTC) to RTC"); } static void restore(void *UNUSED(arg)) { _d("Restoring system clock from RTC ..."); - run_interactive("/sbin/hwclock --hctosys --utc", "Restoring system clock (UTC) from RTC"); + /* -s,--hctosys, -u,--utc */ + run_interactive("/sbin/hwclock -s -u", "Restoring system clock (UTC) from RTC"); } static plugin_t plugin = {