X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d82287294e030025b9fd8a74cfae7e88e98f6d30..a2d30cd34431120e7e2da2c5166f225c2a10b442:/package/openntpd/files/ntpd.init?ds=sidebyside diff --git a/package/openntpd/files/ntpd.init b/package/openntpd/files/ntpd.init index e52874878..8bac705b4 100644 --- a/package/openntpd/files/ntpd.init +++ b/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