Date: Fri, 10 May 2002 14:32:57 -0700 (PDT) From: Gordon Tetlow <gordont@gnf.org> To: current@freebsd.org Subject: Fix order of directories in rc.shutdown Message-ID: <Pine.LNX.4.44.0205101428530.27477-200000@smtp.gnf.org>
next in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --430705419-1775986471-1021066249=:27477 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: <Pine.LNX.4.44.0205101431191.27477@smtp.gnf.org> The enclosed patch fixes the order of script execution so the directory order is also reversed. The current behavior is to have directories traversed in the same order as at startup, but have the scripts in the directories reversed. I just changed it so it builds the script list forward (like for startup), but then reverses the entire list before execution. -gordon --430705419-1775986471-1021066249=:27477 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="rc.shutdown.diff" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.44.0205101430490.27477@smtp.gnf.org> Content-Description: Content-Disposition: ATTACHMENT; FILENAME="rc.shutdown.diff" LS0tIC9ldGMvcmMuc2h1dGRvd24JVGh1IEFwciAxMSAxNDozOToyMCAyMDAy DQorKysgcmMuc2h1dGRvd24JRnJpIE1heSAxMCAxNDoyNTozNSAyMDAyDQpA QCAtNTIsNiArNTIsMTggQEANCiAJLiAvZXRjL3JjLmNvbmYNCiBmaQ0KIA0K KyMgcmV2ZXJzZV9saXN0IGxpc3QNCisjCXByaW50IHRoZSBsaXN0IGluIHJl dmVyc2Ugb3JkZXINCisjDQorcmV2ZXJzZV9saXN0KCkNCit7DQorCV9yZXZs aXN0PQ0KKwlmb3IgX3JldmZpbGUgaW4gJCo7IGRvDQorCQlfcmV2bGlzdD0i JF9yZXZmaWxlJHtzY3JpcHRfbmFtZV9zZXB9JF9yZXZsaXN0Ig0KKwlkb25l DQorCWVjaG8gJF9yZXZsaXN0DQorfQ0KKw0KICMgV3JpdGUgc29tZSBlbnRy b3B5IHNvIHRoZSByZWJvb3RpbmcgL2Rldi9yYW5kb20gY2FuIHJlc2VlZA0K ICMNCiBjYXNlICR7ZW50cm9weV9maWxlfSBpbg0KQEAgLTEwOSwxMyArMTIx LDEzIEBADQogCWZvciBkaXIgaW4gJHtsb2NhbF9zdGFydHVwfTsgZG8NCiAJ CWlmIFsgLWQgIiR7ZGlyfSIgXTsgdGhlbg0KIAkJCWZvciBzY3JpcHQgaW4g JHtkaXJ9Lyouc2g7IGRvDQotCQkJCXNsaXN0PSIke3NjcmlwdH0ke3Njcmlw dF9uYW1lX3NlcH0ke3NsaXN0fSINCisJCQkJc2xpc3Q9IiR7c2xpc3R9JHtz Y3JpcHRfbmFtZV9zZXB9JHtzY3JpcHR9Ig0KIAkJCWRvbmUNCiAJCWZpDQog CWRvbmUNCiAJc2NyaXB0X3NhdmVfc2VwPSIkSUZTIg0KIAlJRlM9IiR7c2Ny aXB0X25hbWVfc2VwfSINCi0JZm9yIHNjcmlwdCBpbiAke3NsaXN0fTsgZG8N CisJZm9yIHNjcmlwdCBpbiBgcmV2ZXJzZV9saXN0ICR7c2xpc3R9YDsgZG8N CiAJCWlmIFsgLXggIiR7c2NyaXB0fSIgXTsgdGhlbg0KIAkJCShzZXQgLVQN CiAJCQl0cmFwICdleGl0IDEnIDINCg== --430705419-1775986471-1021066249=:27477-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0205101428530.27477-200000>