OT: integrating git branch output into ksh PS1 shell prompt?

2014-10-27 Thread Fred Snurd
Git fans like to know what branch is current, and bash's implementation of PS1 allows for update each time it is displayed. All of my attempts of adding a call to a ksh function into PS1 appear to be evaluated at the time that PS1 is set, but not upon each new display of the shell prompt. Does

Re: mounting CVS tree read-only?

2014-02-21 Thread Fred Snurd
On Friday, February 21, 2014 11:14 AM, Theo de Raadt wrote: >> After studying FAQ 5.3, I am contemplating mounting /usr/src and >> /usr/xenocara read-only through NFS so I can maintain a centralized >> tree for multiple platforms.  Is this possible?  Are all >> writes made to /usr/obj and /usr/x

mounting CVS tree read-only?

2014-02-21 Thread Fred Snurd
After studying FAQ 5.3, I am contemplating mounting /usr/src and /usr/xenocara read-only through NFS so I can maintain a centralized tree for multiple platforms.  Is this possible?  Are all writes made to /usr/obj and /usr/xobj? Thanks!

Re: using ifstated(8) to monitor wireless connections?

2013-10-28 Thread Fred Snurd
> On Monday, October 28, 2013 6:10 AM, Stefan Sperling wrote: >> On Sun, Oct 27, 2013 at 10:43:05PM -0700, Fred Snurd wrote: >> >> $ sudo ifconfig ath0 nwid wpakey >> $ ifconfig ath0ath0: flags=8822 mtu >> 1500 >>     lladdr a8:54:b2:23:da:80 >>

using ifstated(8) to monitor wireless connections?

2013-10-27 Thread Fred Snurd
On Monday, October 28, 2013 12:38 AM, Fred Snurd wrote: I found the following article on undeadly which uses ifstated(8) to automatically acquire a DHCP lease upon link state changes on an Ethernet interface: http://undeadly.org/cgi?action=article&sid=20071012140725&mode=

Re: Mac mini G4

2010-07-01 Thread Fred Snurd
"fu...@safe-mail.net" wrote: > I have one question: Is the any way to put the mini > in "server" mode (make it boot automatically after Power Loss)? While asking about server mode, is it also possible to run a PPC mini headless? Thanks.

Re: powering off with shutdown -hp?

2009-10-28 Thread Fred Snurd
Rene wrote: > You can try to disable apm inthe kernel config. Christian wrote: > Remco wrote: >> If I remember correctly, the following hack in /etc/sysctl.conf worked for >> me on a Pentium II machine: >> machdep.apmhalt=1# 1=powerdown hack, try if halt -p doesn't work > > It does work for m

powering off with shutdown -hp?

2009-10-27 Thread Fred Snurd
I've just resurrected an old Pentium 3 system with the 22 October i386 snapshot of OpenBSD 4.6-current. It works great, however after issuing "shutdown -hp now" (I'm greeted with the message "shutdown: switch -p must be used with -h." when using "shutdown -p now"), I'm getting the system messag

books on embedded programming?

2009-09-24 Thread Fred Snurd
I've been looking at what books Amazon has on embedded programming, and the number is quite large. I would most certainly appreciate anyone's opinion on books on this subject. Since I'm pretty proficient in C programming and to a lesser degree assembly level programming, I'm looking for titles

mini-PCI Wistron CM9 & 2 antennae?

2009-03-02 Thread Fred Snurd
Scouring the archives didn't answer the following question; neither has poking about the Web. The Wistron CM9 mini-PCI card has 2 miniature SMT coaxial connectors. Is it possible to use just a single antenna, and is this advisable? Thanks for any insight shared.

CARP & DHCP?

2009-02-21 Thread Fred Snurd
This may be incredibly simple to answer. Section 6.11.1 states that members of a CARP group need to reside on the same subnet with static IP addresses. So, does this mean that CARP can't be used in typical home environment using IP addresses coming from an ISP's DHCP server? I was wondering wh

inserting non-printable characters in sed?

2008-07-12 Thread Fred Snurd
I have been looking at sed to insert non-printable characters into text files. The sed(1) manpage states that I should be able to insert octal values by preceding the three character octal value with a backslash. However, my foo apparently isn't strong enough. eg. $ cat file first line seco

Re: OpenNTPD configuration?

2008-05-25 Thread Fred Snurd
Jordi Espasa Clofent <[EMAIL PROTECTED]> write: ?Can you attach some log/info from _server_? Sure! I've attached a cheap USB GPS unit. The idea came from a thread back in October: http://marc.info/?l=openbsd-misc&w=2&r=1&s=configuring+ntpd+to+use+GPS&q=b server $ cat rc.conf.local nmeaattach_f

OpenNTPD configuration?

2008-05-24 Thread Fred Snurd
I'm a bit confused by what I am seeing in the logfiles when compared to the information found in the manpages and FAQ. I would appreciate if someone could provide some perspective. I've set up OpenNTPD on a 4.3-current server (192.168.0.4), and the time has finally reached synchronization as b

Re: configuration tweaks for CF-based systems?

2008-04-03 Thread Fred Snurd
On Thu, Apr 3, 2008 at 1:05 PM, Chris Kuethe <[EMAIL PROTECTED]> wrote: > Try this: > ls -ltr /dev | tail ; date ; tty This explains a lot. Thanks. The article referenced discusses copying /tmp, /var, and /dev into a memory-based filesystem. Obviously, the contents of /tmp don't need to reta

configuration tweaks for CF-based systems?

2008-04-03 Thread Fred Snurd
There was mention a few days back that the following still contains useful information when it comes to reducing the amount of writing done to CF-like systems: http://blog.innerewut.de/2005/05/14/openbsd-3-7-on-wrap Yet I'm puzzled by the desire/need to move /dev into mfs. The timestamp on t

creating FAT32 partitions?

2008-03-31 Thread Fred Snurd
I apologize for the newbie question, but how is one supposed to add a FAT32 partition? The following shows where I have verified the partitioning of a USB flash drive containing two partitions through fdisk. One for OpenBSD (type A6) & the rest FAT32. Yet when entering the disklabel, I am not

OpenBSD support of EFI?

2008-03-23 Thread Fred Snurd
Please excuse my ignorance. In reading through the recent Intel Mac Mini thread, I'm confused by what appears to OpenBSD's support? OpenBSD now supports EFI? Or is EFI have some compatibility mode with the older BIOS standard? Any information would be greatly appreciated. ___