On Tue, Dec 31, 2013 at 11:11 PM,  <[email protected]> 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
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to