Opened 12 years ago

Closed 12 years ago

#188 closed defect (fixed)

Microsecond improvement in /etc/init.d/S55ntpd

Reported by: Stereo Owned by: developers
Priority: lowest Milestone: 1.0-rc5
Component: packages Version: 1.0
Keywords: openntpd Cc:


Getting rid of the pipe and only launching awk makes us collectively win slightly less than the time it took me to type this. But this is my first patch to OpenWrt, to test the waters. Hello everyone!

--- openwrt/package/openntpd/files/ntpd.init	(revision 2860)
+++ openwrt/package/openntpd/files/ntpd.init	(working copy)
@@ -1,3 +1,3 @@
- mkdir -p `grep "^ntp:" /etc/passwd | cut -d: -f6`
+ mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd`
/usr/sbin/ntpd -s

Attachments (0)

Change History (1)

comment:1 Changed 12 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Merged in r2863, thanks !

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.