Re[2]: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-23 Thread Anthony Pankov
Greetings. Just for note. Some time ago i thought about the same problem. I started something then had delayed it forever in favour of fast wrong way. So, the aim was: --- NAME modcfg - modify configuration SYNOPSIS modcfg -f config_file -t config_type {-s param=val | -u param} modcfg -l

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-12 Thread Devin Teske
On Tue, 2010-10-12 at 12:10 -0700, Doug Barton wrote: > On 2010-10-11 at 10:40 -0700, Doug Barton wrote: > | So to summarize, the general idea is a good one and needed, and an area > | that I'd like to see more work in. Perhaps it might be a good idea to > | move the discussion about that to freeb

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-12 Thread Doug Barton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 [ Snipping the areas in which there is no disagreement ] On 10/11/2010 12:22 PM, Devin Teske wrote: | On Mon, 2010-10-11 at 10:40 -0700, Doug Barton wrote: | | c) misses some knowledge of FreeBSD resources (e.g., mktemp) | |> I'm adding that

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-11 Thread Russell Jackson
On 10/11/2010 05:38 PM, Devin Teske wrote: $ uname -spr FreeBSD 8.1-RELEASE-p1 amd64 $ which augtool $ type augtool -bash: type: augtool: not found Not like I'm running bare... $ pkg_info -Ia | wc -l 399 Unfortunately, augtool doesn't even appear to be packaged for FreeBSD: Try pkg_a

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-11 Thread Devin Teske
On Mon, 2010-10-11 at 13:33 -0700, Russell Jackson wrote: > On 10/06/2010 01:45 PM, Devin Teske wrote: > > Hello fellow freebsd-hackers, > > > > Long-time hacker, first-time poster. > > > > I'd like to share a shell script that I wrote for FreeBSD system > > administration. > > > > The attached she

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-11 Thread Russell Jackson
On 10/06/2010 01:45 PM, Devin Teske wrote: Hello fellow freebsd-hackers, Long-time hacker, first-time poster. I'd like to share a shell script that I wrote for FreeBSD system administration. The attached shell script works similar to sysctl(8), but rather than querying or working on sysctl MIB

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-11 Thread Devin Teske
On Mon, 2010-10-11 at 10:40 -0700, Doug Barton wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Unfortunately $LIFE is preventing me from an in-depth review of this > script at this time, but I wanted to lodge a comment or two. Please > forgive me for the brevity. > > 1. I applaud a

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-11 Thread Doug Barton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Unfortunately $LIFE is preventing me from an in-depth review of this script at this time, but I wanted to lodge a comment or two. Please forgive me for the brevity. 1. I applaud any effort in the realm of making things easier for users. 2. I like t

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-06 Thread Devin Teske
On Wed, 2010-10-06 at 18:09 -0500, Brandon Gooch wrote: > On Wed, Oct 6, 2010 at 3:45 PM, Devin Teske wrote: > > Hello fellow freebsd-hackers, > > > > Long-time hacker, first-time poster. > > > > I'd like to share a shell script that I wrote for FreeBSD system > > administration. > > > > The attac

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-06 Thread Brandon Gooch
On Wed, Oct 6, 2010 at 3:45 PM, Devin Teske wrote: > Hello fellow freebsd-hackers, > > Long-time hacker, first-time poster. > > I'd like to share a shell script that I wrote for FreeBSD system > administration. > > The attached shell script works similar to sysctl(8), but rather than > querying or

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-06 Thread Garrett Cooper
On Wed, Oct 6, 2010 at 1:45 PM, Devin Teske wrote: > Hello fellow freebsd-hackers, > > Long-time hacker, first-time poster. > > I'd like to share a shell script that I wrote for FreeBSD system > administration. > > The attached shell script works similar to sysctl(8), but rather than > querying or

sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-06 Thread Devin Teske
Hello fellow freebsd-hackers, Long-time hacker, first-time poster. I'd like to share a shell script that I wrote for FreeBSD system administration. The attached shell script works similar to sysctl(8), but rather than querying or working on sysctl MIBs, it instead works on the /etc/rc.conf (and

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-06 Thread Devin Teske
Oops =) This version will use grep(1) if installed. Diff below. dte...@dt.vicor.com Desktop $ diff -pub sysconf.txt{.orig,} --- sysconf.txt.orig2010-10-06 13:50:29.0 -0700 +++ sysconf.txt 2010-10-06 13:50:45.0 -0700 @@ -349,8 +349,7 @@ depend sysconf_set 'local' 'sysconf' '['