9fans archive / 2007 / 04 / 582    prev next

search terms are split using tokenize from:regexp searches From: lines subject:regexp searches Subject: lines before:yyyy[/mm[/dd]] and after:yyyy[/mm[/dd]] specify date range powered by grep(1)
From: Alex Brainman <alex.brainman@gma...> Subject: new termrc Date: Mon, 30 Apr 2007 08:29:01 GMT On Apr 27, 9:16 am, g...@plan9.bell-labs.com wrote: > I've just pushed out a new (and I hope stable) /rc/bin/termrc > and /cfg/example/termrc. Machine-specific configuration should > go into /cfg/$sysname/termrc. If you don't use DHCP (i.e., you > statically configure terminal IP addresses), this affects you. > You'll probably want to look at the diffs in any case. I need an advice. I have a standalone plan9 computer, and if I use the /rc/bin/termrc, then my $sysname is blank. It's, obviously, because I use DHCP to set my ip address and other parameters, and I use those settings as part of my network database. But at the time when /rc/bin/termrc sets $sysname, network is not started yet and all those parameters aren't available yet. My /lib/ndb/local includes line: file=/lib/ndb/common and I use DHCP to get my address and /lib/ndb/common contains: ip=192.168.21.14 ipmask=255.255.255.128 ipgw=192.168.21.1 sys=plan9term dom=plan9term.linux.sge.local sge.local dns=192.168.21.1 If I move sysname=`{cat /dev/sysname} line down after section where network is set, $sysname gets correct value all right. What am I doing wrong? Or is my setup "non-standard" enough and I'can't use this general /rc/bin/termrc? Thank you. Alex