Created:        
02/02/2009 13:37:50
--- nlogin.dist 2009-01-30 12:46:12.000000000 -0500
+++ nlogin 2009-02-02 13:33:41.000000000 -0500
@@ -353,21 +353,12 @@
        set uprompt_seen 1
        exp_continue
      }
- "@\[^\r\n]+\[Pp]assword:" {
+ "password:" {
        # ssh pwd prompt
        sleep 1
        send "$userpswd\r"
        exp_continue
      }
- "\[Pp]assword:"   {
-       sleep 1;
-       if {$uprompt_seen == 1} {
-      send "$userpswd\r"
-       } else {
-      send "$passwd\r"
-       }
-       exp_continue
-     }
  "$prompt"       { break; }
      }
     }
@@ -485,14 +476,14 @@
     if {[login $firewall $ruser $userpswd $passwd $enapasswd $prompt $cmethod
$cyphertype]} {
  continue
     }
-    if { $enable } {
- if {[do_enable $enauser $enapasswd]} {
-     if { $do_command || $do_script } {
-  close; wait
-  continue
-     }
- }
-    }
+#     if { $enable } {
+# if {[do_enable $enauser $enapasswd]} {
+#     if { $do_command || $do_script } {
+#  close; wait
+#  continue
+#     }
+# }
+#    }
     # we are logged in, now figure out the full prompt
     send "\r"
     expect {_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to