X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/b249e2425fc7392645ba4383bf0ba3079c4926f3..3a136359290298b746c92c50dc37d7ef49704175:/openwrt/package/openntpd/files/ntpd.init diff --git a/openwrt/package/openntpd/files/ntpd.init b/openwrt/package/openntpd/files/ntpd.init index e52874878..8bac705b4 100644 --- a/openwrt/package/openntpd/files/ntpd.init +++ b/openwrt/package/openntpd/files/ntpd.init @@ -1,3 +1,3 @@ #!/bin/sh -mkdir -p `grep "^ntp:" /etc/passwd | cut -d: -f6` +mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd` /usr/sbin/ntpd -s