Browse Source

Replacing awk for field (#171)

setrc script is called from fshalt.
Álvaro Jurado 7 years ago
parent
commit
07ef40459f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rc/bin/setrtc

+ 1 - 1
rc/bin/setrtc

@@ -1,4 +1,4 @@
 #!/bin/rc
 # setrtc - set real-time clock to current system time
 if (test -e '#r/rtc')
-	awk '{print $1}' /dev/time >'#r/rtc'
+	field 1 /dev/time >'#r/rtc'