If $sysname isn't set after calling ndb/cs, give it a default value. Alternatively this could have been done inside ndb/cs as a last resort, but putting it here allows setting a different default in termrc.local or cpurc.local if desired. Reference: /n/sources/patch/applied/sysname-default Date: Mon May 21 13:25:47 CES 2007 Signed-off-by: miller@hamnavoe.com --- /rc/bin/cpurc Mon May 21 13:20:33 2007 +++ /rc/bin/cpurc Mon May 21 13:20:29 2007 @@ -12,11 +12,15 @@ # parallelism for mk NPROC = `{wc -l /dev/sysname +} +prompt=($sysname^'# ' ' ') # cpu-specific startup such as # ip/ipconfig ether /dev/ether0 ip gw ... --- /rc/bin/termrc Mon May 21 13:20:51 2007 +++ /rc/bin/termrc Mon May 21 13:20:48 2007 @@ -25,6 +25,10 @@ if(! test -e /srv/cs) ndb/cs -f $NDBFILE sysname=`{cat /dev/sysname} +if(~ $sysname '') { + sysname=gnot + echo -n $sysname >/dev/sysname +} # machine specific startup (e.g., for devices not probed) if(test -e /cfg/$sysname/termrc)