summaryrefslogtreecommitdiff
path: root/openwrt/package/openntpd/files/ntpd.init
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/openntpd/files/ntpd.init')
-rw-r--r--openwrt/package/openntpd/files/ntpd.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/openntpd/files/ntpd.init b/openwrt/package/openntpd/files/ntpd.init
index e528748780..8bac705b4a 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