Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src move sysctl to /sbin/sysctl. symlink from /usr/sbin/sysctl



details:   https://anonhg.NetBSD.org/src/rev/edea9af23495
branches:  trunk
changeset: 480641:edea9af23495
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Jan 17 02:36:31 2000 +0000

description:
move sysctl to /sbin/sysctl.  symlink from /usr/sbin/sysctl
is supplied for backward compatibility.

add /sbin/sysctl to base/mi (does not remove /usr/sbin/sysctl
as we have a symlink)

diffstat:

 distrib/sets/lists/base/mi |  3 ++-
 sbin/Makefile              |  6 +++---
 sbin/sysctl/Makefile       |  5 ++++-
 3 files changed, 9 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r 268e3ac4bdc5 -r edea9af23495 distrib/sets/lists/base/mi
--- a/distrib/sets/lists/base/mi        Mon Jan 17 02:32:07 2000 +0000
+++ b/distrib/sets/lists/base/mi        Mon Jan 17 02:36:31 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.139 1999/12/29 04:16:23 hubertf Exp $
+# $NetBSD: mi,v 1.140 2000/01/17 02:36:32 itojun Exp $
 .
 ./altroot
 ./bin
@@ -128,6 +128,7 @@
 ./sbin/slattach
 ./sbin/swapctl
 ./sbin/swapon
+./sbin/sysctl
 ./sbin/ttyflags
 ./sbin/tunefs
 ./sbin/umount
diff -r 268e3ac4bdc5 -r edea9af23495 sbin/Makefile
--- a/sbin/Makefile     Mon Jan 17 02:32:07 2000 +0000
+++ b/sbin/Makefile     Mon Jan 17 02:36:31 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.64 1999/11/23 05:28:16 mrg Exp $
+#      $NetBSD: Makefile,v 1.65 2000/01/17 02:36:31 itojun Exp $
 #      @(#)Makefile    8.5 (Berkeley) 3/31/94
 
 # Not ported: XNSrouted enpload scsiformat startslip
@@ -7,8 +7,8 @@
 SUBDIR=        atactl badsect bim ccdconfig disklabel dmesg edlabel fastboot fdisk \
        fsck fsirand ifconfig init ldconfig lmcctl mknod modload modunload \
        mount newbtconf nologin ping raidctl reboot rcorder rndctl route \
-       routed savecore scsictl shutdown slattach swapctl ttyflags umount \
-       wsconsctl
+       routed savecore scsictl shutdown slattach swapctl sysctl ttyflags \
+       umount wsconsctl
 
 # support for various file systems
 SUBDIR+= mount_ados
diff -r 268e3ac4bdc5 -r edea9af23495 sbin/sysctl/Makefile
--- a/sbin/sysctl/Makefile      Mon Jan 17 02:32:07 2000 +0000
+++ b/sbin/sysctl/Makefile      Mon Jan 17 02:36:31 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2000/01/17 02:30:18 itojun Exp $
+#      $NetBSD: Makefile,v 1.9 2000/01/17 02:36:32 itojun Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/6/93
 
 PROG=  sysctl
@@ -7,4 +7,7 @@
 CPPFLAGS+=-DINET6 -DIPSEC
 #CPPFLAGS+=-DTCP6
 
+afterinstall:
+       (cd ${DESTDIR}/usr/sbin; ln -sf ../../sbin/sysctl .)
+
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index