From 6aace957ff35d509ecc8ea141e3d34d1e7a01709 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 24 May 2011 10:36:04 -0300 Subject: [PATCH] bin/ben, bin/jlime: helper scripts for network setup and SSH login --- bin/ben | 9 +++++++++ bin/jlime | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100755 bin/ben create mode 100755 bin/jlime diff --git a/bin/ben b/bin/ben new file mode 100755 index 0000000..f54dea4 --- /dev/null +++ b/bin/ben @@ -0,0 +1,9 @@ +#!/bin/sh +ITF=usb0 +if [ "$1" = -i ]; then + ITF=$2 + shift 2 +fi +# ben is 192.168.254.101 +echo 1 >/proc/sys/net/ipv4/ip_forward +ifconfig ${ITF_BEN:-$ITF} 192.168.254.100 up && ssh 192.168.254.101 "$@" diff --git a/bin/jlime b/bin/jlime new file mode 100755 index 0000000..e6a9f93 --- /dev/null +++ b/bin/jlime @@ -0,0 +1,9 @@ +#!/bin/sh +ITF=usb0 +if [ "$1" = -i ]; then + ITF=$2 + shift 2 +fi +# ben is 192.168.1.202 +echo 1 >/proc/sys/net/ipv4/ip_forward +ifconfig ${ITF_JLIME:-$ITF} 192.168.1.200 up && ssh 192.168.1.202 "$@"