From owner-freebsd-net@freebsd.org Tue Jun 26 10:52:11 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A86331020B52 for ; Tue, 26 Jun 2018 10:52:11 +0000 (UTC) (envelope-from ish@amail.plala.or.jp) Received: from msc12.plala.or.jp (msc12.plala.or.jp [60.36.166.22]) by mx1.freebsd.org (Postfix) with ESMTP id C5BAC8BB25 for ; Tue, 26 Jun 2018 10:52:10 +0000 (UTC) (envelope-from ish@amail.plala.or.jp) Received: from localhost ([2400:4050:9320:7a00::8]) by msc12.plala.or.jp with ESMTP id <20180626105201.DWIM4065.msc12.plala.or.jp@localhost> for ; Tue, 26 Jun 2018 19:52:01 +0900 Date: Tue, 26 Jun 2018 19:51:57 +0900 (JST) Message-Id: <20180626.195157.1921635683346441969.ish@amail.plala.or.jp> To: freebsd-net@freebsd.org Subject: Re: usb ethernet adapter does not work after reboot From: Masachika ISHIZUKA In-Reply-To: References: <20180625.234518.743785892819344523.ish@amail.plala.or.jp> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-VirusScan: Outbound; mvir-ac12; Tue, 26 Jun 2018 19:52:01 +0900 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2018 10:52:11 -0000 > BTW, the triple "sync" is a waste of... well, not much except your time in > typing it into your script. The rule to sync discs three times assumes that > you are actually typing it. It is to allow enough time for the file > system(s) to complete syncing before the system is halted (halt(8)) or > power is removed. Both reboot(8) and shutdown(8) now take care of this. > Only the first sync(8) really does anything. Typing it three times on a > teletype takes long enough for metadata to be written. Thank you, Kevin. I want to sync nfs mounted disks before usb ethernet card is powered down. I think that '/etc/rc.d/nfsuserd stop' may be better than '/bin/sync'. -- Masachika ISHIZUKA