Skip to content
Snippets Groups Projects
Commit 5393c906 authored by David Boddie's avatar David Boddie :speech_balloon: Committed by Guido Gunther
Browse files

Add host and device scripts for USB networking

parent fc5bc837
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment