chiark / gitweb /
Add domains to vtwmrc ncipher hosts.
[ian-dotfiles.git] / config
diff --git a/config b/config
index 9014c2a694a1afd423d4647db8bd8d00b2723675..c1e03623408ad0d451aa72981b98c8b46413165f 100644 (file)
--- a/config
+++ b/config
@@ -1,2 +1,30 @@
 @@-
-chomp($hostname= `uname -n`); $? and die;
+chomp($nodename= `uname -n`); $? and die 'uname $?';
+($hostname)=(gethostbyname $nodename) or die "hostname $nodename ?";
+$nodename =~ s/\..*//;
+
+$xbindir= '/usr/bin/X11';
+
+chomp($s= `uname`); $? and die "platform $?";
+if ($s =~ m/^Linux$/) {
+    chomp($_= `uname -m`); $? and die "platform $?";
+    if (m/^i\d86/) {
+       $platform= 'linux-i386';
+    } else {
+       die "$_ ?";
+    }
+} elsif ($s =~ m/^SunOS$/) {
+    chomp($_= `uname -r`); $? and die "platform $?";
+    m/^\d+\.\d+/ or die "$_ ?";
+    $platform= "SunOS$&";
+    $xbindir= '/usr/openwin/bin';
+} else {
+    die "$s ?";
+}
+
+$ncipher= $hostname =~ m/\.(ncipher\.com$)/    ? 'cam' :
+          $hostname =~ m/\.(ncipherusa\.com$)/ ? 'bos' :
+          0;
+
+%ncipherdom= ('cam' => 'ncipher.com',
+             'bos' => 'ncipherusa.com');