Skip to content

Instantly share code, notes, and snippets.

@elecnix
Last active August 29, 2015 14:13
Show Gist options
  • Save elecnix/8d2d18b10e5187f9f81d to your computer and use it in GitHub Desktop.
Save elecnix/8d2d18b10e5187f9f81d to your computer and use it in GitHub Desktop.
Setup USB storage for vfat USB key on OpenWrt (without OpenWrt internet acccess)
BASE_URL=https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/
TARGET_IP=192.168.1.1
TARGET_USER=root
KERNEL_VERSION=3.10.49-1
HARDWARE=ar71xx
MODULES="kmod-fs-vfat kmod-nls-base kmod-nls-cp437 kmod-nls-iso8859 kmod-scsi-core kmod-usb2 kmod-usb-storage"
for MOD in MODULES do
wget $MOD_$KERNEL_$VERSION_$HARDWARE.ipk
done
wget $BASE_URL/block-mount_2014-06-22-e0430f5c62f367e5a8e02755412977b02c3fc45e_ar71xx.ipk
scp *.ipk $TARGET_USER@$TARGET_IP:/tmp/
ssh $TARGET_USER@$TARGET_IP "opkg install /tmp/*.ipk"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment