chiark / gitweb /
Found xloadt.
[ian-dotfiles.git] / config
diff --git a/config b/config
index 9014c2a694a1afd423d4647db8bd8d00b2723675..6c6b6c69f1852436c88d33e58d2364c00c2d4d76 100644 (file)
--- a/config
+++ b/config
@@ -1,2 +1,16 @@
 @@-
-chomp($hostname= `uname -n`); $? and die;
+chomp($hostname= `uname -n`); $? and die 'uname $?';
+($hostname)=(gethostbyname $hostname) or die "hostname $hostname ?";
+
+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 '$_ ?';
+    }
+}
+
+$ncipher= $hostname =~ m/\.ncipher\.com$/ 
+    || $hostname =~ m/\.ncipherusa\.com$/;