mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-22 08:47:31 +02:00
10 lines
204 B
Bash
Executable File
10 lines
204 B
Bash
Executable File
#!/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 "$@"
|