openwrt-owl/openwrt/package/openntpd/files/ntpd.init

4 lines
79 B
Bash

#!/bin/sh
mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd`
/usr/sbin/ntpd -s