Ticket #47 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

net and multiple ntpd servers

Reported by: Nathan Phillip Brink <ohnobinki@gmail.com> Owned by: roy
Priority: normal Milestone:
Component: init.d scripts Version:
Keywords: Cc:

Description

Created an attachment (id=17)
patch on /lib64/rc/net/system.sh to allow multiple ntpd servers to not cause a warning to output

I am using the Gentoo Hosted Overlay's GIT ebuild, installed freshly today, and encountered this error/warning message:

modules | * Autoloaded 0 module(s)
net.lo | * Bringing up interface lo
net.lo |/lib64/rc/net/system.sh: line 62: [: too many arguments
net.lo | * 127.0.0.1/8 ... [ok]
net.lo | * Adding routes
net.lo | * 127.0.0.0/8 via 127.0.0.1 ... [ok]

I determined this to be caused, I think, from my /etc/conf.d/net file containing this line:
ntp_servers="0.us.pool.ntp.org 1.us.pool.ntp.org 2.us.pool.ntp.org 3.us.pool.ntp.org"

I added quotes to the /lib64/rc/net/system.sh file, and now that message disappears. The changes are attached as a patch, but I am inexperienced in providing patches for stuff, so feel free to ask me to do it differently.

Attachments

system.sh.patch Download (0 bytes) - added by Nathan Phillip Brink <ohnobinki@gmail.com> 2 years ago.
patch on /lib64/rc/net/system.sh to allow multiple ntpd servers to not cause a warning to output

Change History

Changed 2 years ago by Nathan Phillip Brink <ohnobinki@gmail.com>

patch on /lib64/rc/net/system.sh to allow multiple ntpd servers to not cause a warning to output

comment:232 Changed 2 years ago by roy

  • Status changed from new to resolved
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.