diff options
author | abs <abs@pkgsrc.org> | 2001-08-10 09:03:07 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2001-08-10 09:03:07 +0000 |
commit | ab5201027e71af00f0f9bc1f346df892b3cd6bca (patch) | |
tree | f5bd0e4cf1f406180722813c86855ab224ae0ea4 /devel/cpuflags | |
parent | b07f354d3ed94152931bf285b33b49e44cd951cd (diff) | |
download | pkgsrc-ab5201027e71af00f0f9bc1f346df892b3cd6bca.tar.gz |
Update cpuflags to 0.8
Make sysctl usage work under NetBSD 1.3 again
Diffstat (limited to 'devel/cpuflags')
-rw-r--r-- | devel/cpuflags/Makefile | 4 | ||||
-rwxr-xr-x | devel/cpuflags/files/cpuflags.NetBSD | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile index b3c90a0c20f..be25152131f 100644 --- a/devel/cpuflags/Makefile +++ b/devel/cpuflags/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.7 2001/07/02 22:14:56 abs Exp $ +# $NetBSD: Makefile,v 1.8 2001/08/10 09:03:07 abs Exp $ # -DISTNAME= cpuflags-0.7 +DISTNAME= cpuflags-0.8 CATEGORIES= sysutils MASTER_SITES= # empty DISTFILES= # empty diff --git a/devel/cpuflags/files/cpuflags.NetBSD b/devel/cpuflags/files/cpuflags.NetBSD index 797a46bfc8c..378ced429e2 100755 --- a/devel/cpuflags/files/cpuflags.NetBSD +++ b/devel/cpuflags/files/cpuflags.NetBSD @@ -1,7 +1,11 @@ #!/bin/sh -# $NetBSD: cpuflags.NetBSD,v 1.7 2001/07/02 22:14:56 abs Exp $ +# $NetBSD: cpuflags.NetBSD,v 1.8 2001/08/10 09:03:07 abs Exp $ -hw_model=`/sbin/sysctl -n hw.model` +if [ -x /sbin/sysctl ] ;then + hw_model=`/sbin/sysctl -n hw.model` +else # NetBSD 1.3 + hw_model=`/usr/sbin/sysctl -n hw.model` +fi case $hw_model in # i386 |