Скрипты для Linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
665 B

#!/bin/bash
url="https://downloads.openwrt.org/releases/22.03.7/targets/bcm47xx/legacy/openwrt-22.03.7-bcm47xx-legacy-asus_wl-500gp-v2-squashfs.trx"
file_name="${url##*/}"
[ -f ./${file_name} ] || wget "${url}"
atftp --trace --option "timeout 10" --option "mode octet" --put --local-file "${file_name}" 192.168.1.1
# On router by: ssh root@192.168.1.1
# opkg install block-mount kmod-usb-storage kmod-usb-ohci kmod-fs-ext4 kmod-usb2
# opkg install mc
# opkg install hd-idle
# /etc/config/hd-idle:
# config 'hd-idle'
# option 'disk' 'sda'
# option 'enabled' '1'
# option 'idle_time_unit' 'minutes'
# option 'idle_time_interval' '10'