Commit 5393c906 authored by David Boddie's avatar David Boddie Committed by Guido Gunther
Browse files

Add host and device scripts for USB networking

parent fc5bc837
Pipeline #70075 failed with stages
in 2 minutes and 57 seconds
scripts/librem5-devkit-flash-image /usr/bin/
scripts/librem5-usbnet /usr/bin/
#!/bin/bash
#
# Copyright (C) 2019 Purism SPC
#
# SPDX-License-Identifier: GPL-3.0+
#
set -e
if [ $# -ne 2 ]; then
echo "Usage: librem5-usbnet <IPv4 address> <network interface>"
exit
fi
ip addr add $1/24 dev $2
sysctl net.ipv4.ip_forward=1
#!/bin/bash
#
# Copyright (C) 2019 Purism SPC
#
# SPDX-License-Identifier: GPL-3.0+
#
set -e
if [ $# -ne 0 ]; then
echo "Usage: usbnet"
exit
fi
ip addr add 192.168.42.2/24 dev usb0
ip route add default via 192.168.42.1 dev usb0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment