secureonelabs Posted March 9, 2017 Share Posted March 9, 2017 I may be overlooking something very obvious here. Anyone else having issues "permanently" setting the system or hardware clocks? because ntp only works when there is internet connection, I can't rely on it. I can set the time manually while logged on via serial or ssh, but as soon as the bashbunny is rebooted or recycled, it reverts back to 1969. I'm writing custom scripts and need to set the correct datetime in my log files. # This sets the timezone # dpkg-reconfigure tzdata # This sets the date # date --set 2017-03-09 # This sets the time # date --set 01:32:00 # This is supposed to sync the hardware clock to the system clock, which it does when you run it, but disappears when bashbunny is restarted # hwclock --systohc Any help would be greatly appreciated. Cheers Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.