freebsd / crochet

Build FreeBSD images for RaspberryPi, BeagleBone, PandaBoard, and others.
BSD 2-Clause "Simplified" License
611 stars 187 forks source link

ntpd by default on Raspberry PI #112

Closed dinapappor closed 9 years ago

dinapappor commented 9 years ago

Since Rapsberry PI does not have a RTC and needs ntp to keep clock in sync this PR should have that started by default.

kientzle commented 9 years ago

Could you please also add ntpd_sync_on_start? I believe that's also essential to get ntpd to actually startup correctly.

Thanks!

dinapappor commented 9 years ago

Yes I can. :)

kientzle commented 9 years ago

On further consideration, I would rather not make this change by default, since it's quite troublesome if you are running RPi or RPi2 without a network connection.

I've edited the rc.conf files to included a commented-out version of this setting as a suggestion. I've also added the ntpd_sync_on_start flag, which is essential for correct ntpd operation on systems without RTC.

If you want to set ntpd by default on your personal builds, it's easy to add the following to your config.sh:

customize_freebsd_partition ( ) {
    cat << "EOF" >> etc/rc.conf
ntpd_enable="YES"
EOF
}
brd commented 9 years ago

@kientzle Why not make it an option?

kientzle commented 9 years ago

Good idea!

Done in commit ec554aa