Bug 13545

Summary: [PATCH] linux(8) should go to /usr/sbin
Product: Base System Reporter: Jose M. Alcaide <jose>
Component: binAssignee: Marcel Moolenaar <marcel>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.2-RELEASE   
Hardware: Any   
OS: Any   

Description Jose M. Alcaide 1999-09-02 20:00:02 UTC
The linux(8) script, which uses kldstat(8) and kldload(8), currently
resides in /usr/bin. However, it should go to /usr/sbin, because it
is a system utility.

Fix: The following patch may be applied from /usr/src:

------------------------------BEGIN------------------------------


-------------------------------END---------------------------------LRo7ftoiQ4pnhNFQWJXNJn08o7yXzDZa0QNgRU17H70sgANT
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- sys/modules/linux/Makefile.orig     Sat Feb  6 00:13:52 1999
+++ sys/modules/linux/Makefile  Thu Sep  2 20:23:28 1999
@@ -37,6 +37,6 @@
 
 afterinstall:
        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
-               ${.CURDIR}/linux.sh ${DESTDIR}/usr/bin/linux
+               ${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux
 
 .include <bsd.kmod.mk>
How-To-Repeat: N/A
Comment 1 Sheldon Hearn 1999-09-03 06:54:25 UTC
On Thu, 02 Sep 1999 11:53:44 MST, jose@we.lc.ehu.es wrote:

> The linux(8) script, which uses kldstat(8) and kldload(8), currently
> resides in /usr/bin. However, it should go to /usr/sbin, because it
> is a system utility.

I agree. I'll pass this by Marcel, our Linux guy, in case there are
weird issues I haven't thought of.

Ciao,
Sheldon.
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 1999-09-03 06:54:31 UTC
Responsible Changed
From-To: freebsd-bugs->marcel

Marcel, any reason why this change might break anything? :-) 

Comment 3 Marcel Moolenaar freebsd_committer freebsd_triage 1999-09-03 08:27:36 UTC
State Changed
From-To: open->closed

Patch applied and committed. Thanks! 
After searching the complete ports collection, /etc and /usr/src/release/sysinstall and making sure that /usr/sbin is in PATH I think I covered everything :-)