Merged enhancements submitted by Stereo, thanks, closes #188 and #189
[openwrt/svn-archive/archive.git] / openwrt / package / openntpd / files / ntpd.init
index e528748780d6817e8067bd081875152d0cd27b78..8bac705b4ae756af5933895403f4e5cfbf910580 100644 (file)
@@ -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