summaryrefslogblamecommitdiffstats
path: root/builder/modules.d/slx-clock/module-setup.sh
blob: 1a9956e33c81c9b15e306c6d3f0ad6cc598e4eaf (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                                                                                
                                 

           




                                                                             
 
#!/usr/bin/env bash
check() {
	# Tell dracut that this module should only be included if it is required
	# explicitly.
	return 255
}
depends() {
	echo dnbd3-rootfs busybox
}
install() {
	# wait til we have the openslx config for ntp servers
	# which happens in pre-mount/10
	inst_multiple ntpdate /etc/services /usr/share/zoneinfo/Europe/Berlin
	inst /usr/share/zoneinfo/Europe/Berlin /etc/localtime
	inst_hook pre-mount 15 "$moddir/scripts/ntp-sync.sh"
}