X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/b249e2425fc7392645ba4383bf0ba3079c4926f3..296af0765342e14cb545763aa7b1d906e224d7ca:/openwrt/package/openntpd/files/ntpd.init?ds=sidebyside 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