+macro editor ALT-w: wrap text (subject line) to " [WAS: &]"
[nethome.git] / bin / kratochvil.vellum.cz-update
index c32a5b4..99b5c01 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 lockfile="/home/short/bin/kratochvil.vellum.cz-update.lock"
-kratochvil_IP="`echo "$SSH_CLIENT"|cut -d ' ' -f 1`"
+kratochvil_IP="`echo "${SSH_CLIENT:-$SSH2_CLIENT}"|cut -d ' ' -f 1`"
 kratochvil_IP_back="`echo "$kratochvil_IP"|sed 's/\./\\\\./g'`"
 named_dir="/etc/named"
 cf_file="$named_dir/cf/kratochvil.vellum.cz"