From ef38b13e553416c9e49a559a9ec0f85deb7c4722 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 19 Aug 2021 15:51:32 +0200 Subject: [PATCH] openwrt: add script to support block devices --- openwrt/openwrt-add-usb-stick.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 openwrt/openwrt-add-usb-stick.sh diff --git a/openwrt/openwrt-add-usb-stick.sh b/openwrt/openwrt-add-usb-stick.sh new file mode 100755 index 0000000..3637ca0 --- /dev/null +++ b/openwrt/openwrt-add-usb-stick.sh @@ -0,0 +1,28 @@ +#!/bin/sh +# Nico Schottelius +# 2021-01-07 +# Based on https://openwrt.org/docs/guide-user/storage/usb-drives-quickstart + +if [ $# -ne 1 ]; then + echo "$0 ip-address nat64-prefix" + echo " ip-address: where to find the OpenWRT device" + exit 1 +fi + +my_ip=$1; shift + +cat <