X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d82287294e030025b9fd8a74cfae7e88e98f6d30..a533c528599e2d75536320755e0a4dca126087c5:/package/openntpd/files/ntpd.init 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