add missing /sbin/ to hwclock call (so it will work as cronjob)

This commit is contained in:
xaki23 2018-09-10 17:24:35 +02:00
parent a371375f1d
commit ce794f33d8
No known key found for this signature in database
GPG Key ID: C6C39B177E1A717C

View File

@ -47,7 +47,7 @@ def main():
date_out = untrusted_date_out date_out = untrusted_date_out
subprocess.check_call(['date', '-u', '-Iseconds', '-s', date_out], subprocess.check_call(['date', '-u', '-Iseconds', '-s', date_out],
stdout=subprocess.DEVNULL) stdout=subprocess.DEVNULL)
subprocess.check_call(['hwclock', '--systohc'], subprocess.check_call(['/sbin/hwclock', '--systohc'],
stdout=subprocess.DEVNULL) stdout=subprocess.DEVNULL)
if __name__ == '__main__': if __name__ == '__main__':