hwclock: How to use the -S parameter?

Denys Vlasenko vda.linux at googlemail.com
Fri Jan 10 17:19:05 UTC 2014


On Tue, Dec 31, 2013 at 11:11 PM,  <dptrash at arcor.de> wrote:
> I tried following command: ntpd -dnq -S "hwclock -uw" -p ntp.pool.org
> But, it is like "hwclock -uw" has not been executed.
>
> So, how is the correct way to use the -S parameter?

-S PROG does not allow PROG to have arguments.
You can't run "hwclock -uw" directly there - you need
to wrap it in a script:

ntpd -s script.sh

script.sh:

#!/bin/sh
hwclock -uw


More information about the busybox mailing list