1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-23 12:00:38 +02:00

bin/ben, bin/jlime: helper scripts for network setup and SSH login

This commit is contained in:
Werner Almesberger 2011-05-24 10:36:04 -03:00
parent 387e6dd094
commit 6aace957ff
2 changed files with 18 additions and 0 deletions

9
bin/ben Executable file
View File

@ -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 "$@"

9
bin/jlime Executable file
View File

@ -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 "$@"