diff options
Diffstat (limited to 'minikrebs/profiles/usbbridge')
6 files changed, 42 insertions, 0 deletions
diff --git a/minikrebs/profiles/usbbridge/custom_make b/minikrebs/profiles/usbbridge/custom_make new file mode 100755 index 00000000..ed43f4fe --- /dev/null +++ b/minikrebs/profiles/usbbridge/custom_make @@ -0,0 +1,3 @@ +#!/bin/sh + +make image PROFILE=TLWR703 PACKAGES="tinc ip wireless-tools kmod-usb-core kmod-usb2 usbip-server -radvd -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq" FILES=customfiles/ diff --git a/minikrebs/profiles/usbbridge/customfiles/etc/config/network b/minikrebs/profiles/usbbridge/customfiles/etc/config/network new file mode 100644 index 00000000..c459c4e0 --- /dev/null +++ b/minikrebs/profiles/usbbridge/customfiles/etc/config/network @@ -0,0 +1,9 @@ +config interface 'loopback' + option ifname 'lo' + option proto 'static' + option ipaddr '127.0.0.1' + option netmask '255.0.0.0' + +config interface 'lan' + option ifname 'eth0' + option proto 'dhcp' diff --git a/minikrebs/profiles/usbbridge/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/usbbridge/customfiles/etc/dropbear/authorized_keys new file mode 120000 index 00000000..9c87fc52 --- /dev/null +++ b/minikrebs/profiles/usbbridge/customfiles/etc/dropbear/authorized_keys @@ -0,0 +1 @@ +/root/.ssh/authorized_keys
\ No newline at end of file diff --git a/minikrebs/profiles/usbbridge/customfiles/etc/rc.local b/minikrebs/profiles/usbbridge/customfiles/etc/rc.local new file mode 100644 index 00000000..49ae50b3 --- /dev/null +++ b/minikrebs/profiles/usbbridge/customfiles/etc/rc.local @@ -0,0 +1,3 @@ +insmod usbip-host +usbip bind -b 1-1 +usbipd -D diff --git a/minikrebs/profiles/usbbridge/customfiles/etc/shadow b/minikrebs/profiles/usbbridge/customfiles/etc/shadow new file mode 100644 index 00000000..9cc800dd --- /dev/null +++ b/minikrebs/profiles/usbbridge/customfiles/etc/shadow @@ -0,0 +1,5 @@ +root:$1$WFDw.yoc$MuPQ4h/nu3WMpHmte5Yrp/:15719:0:99999:7::: +daemon:*:0:0:99999:7::: +ftp:*:0:0:99999:7::: +network:*:0:0:99999:7::: +nobody:*:0:0:99999:7::: diff --git a/minikrebs/profiles/usbbridge/doc/README b/minikrebs/profiles/usbbridge/doc/README new file mode 100644 index 00000000..68e6a979 --- /dev/null +++ b/minikrebs/profiles/usbbridge/doc/README @@ -0,0 +1,21 @@ +# usbbridge + +krebsplug will start up as usbbridge with usbip-utils. +it will run an usbipd and grab an ip-address via dhcp. + +# setup +connect usb-device and then connect krebsplug to power. +when changing the usb-device, detach it on the client side, +power off the krebsplug, attach usb device and power up +then. + +# usage +## client side attach + + modprobe vhci-hcd + usbip list -r <<KREBSIP>> + usbip attach -h <<KREBSIP>> -p 1-1 + +## client side detach + + usbip detach -p 0 |