r4712 - developers/tick/scripts
tick at docs.openmoko.org
tick at docs.openmoko.org
Mon Oct 13 11:37:50 CEST 2008
Author: tick
Date: 2008-10-13 11:37:49 +0200 (Mon, 13 Oct 2008)
New Revision: 4712
Added:
developers/tick/scripts/sshn
Log:
[tick] a simple script helps to connect to Neo
Added: developers/tick/scripts/sshn
===================================================================
--- developers/tick/scripts/sshn (rev 0)
+++ developers/tick/scripts/sshn 2008-10-13 09:37:49 UTC (rev 4712)
@@ -0,0 +1,14 @@
+#!/usr/bin/expect --
+spawn ifconfig usb0
+expect {
+ "usb0: error fetching interface information: Device not found*" {exit}
+ "inet addr:192.168.0.200" close
+ "inet6" {spawn sudo ifconfig usb0 192.168.0.200;interact}
+}
+
+spawn ssh -o stricthostkeychecking=no root at 192.168.0.202
+expect {
+ "Are you sure you want to continue connecting*"
+ {send "yes\r";exp_continue}
+ "root@*'s password:*" {send "\r\n";interact}
+}
Property changes on: developers/tick/scripts/sshn
___________________________________________________________________
Name: svn:executable
+ *
More information about the commitlog
mailing list