From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Date: Mon, 30 Apr 2007 08:29:01 +0000 From: Alex Brainman Message-ID: <1177892013.171851.236980@u30g2000hsc.googlegroups.com> Content-Type: text/plain; charset="iso-8859-1" References: <3989f6b97fb407ccb8a844a5897a4dcd@plan9.bell-labs.com> Subject: [9fans] Re: new termrc Topicbox-Message-UUID: 52890b34-ead2-11e9-9d60-3106f5b1d025 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