1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/sbin/openrc-run depend() { need net after firewall } start() { if [ -z "$NTP_HOST" ] ; then eerror "Please set NTP_HOST in /etc/conf.d/rdate" return 1 fi ebegin "Running busybox rdate" rdate "$NTP_HOST" eend $? }