diff --git a/OpenWrt/make_image_wl520gu.bash b/OpenWrt/make_image_wl520gu.bash new file mode 100755 index 0000000..1c640b0 --- /dev/null +++ b/OpenWrt/make_image_wl520gu.bash @@ -0,0 +1,30 @@ +#!/bin/bash + +#sudo apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc + +image_builder_url="https://downloads.openwrt.org/releases/22.03.7/targets/bcm47xx/legacy/openwrt-imagebuilder-22.03.7-bcm47xx-legacy.Linux-x86_64.tar.xz" + +file_name="${image_builder_url##*/}" +base="${file_name%.[^.]*.[^.]*}" +ext="${file_name:${#base} + 1}" + +image_builder_file=${file_name} +image_builder_dir=${base} + +echo ${file_name} ${base} ${ext} + +[ -f ./${image_builder_file} ] || wget ${image_builder_url} + +[ -d ./${image_builder_dir} ] || tar -xf ${image_builder_file} + +cd ${image_builder_dir} + +#make image PROFILE= PACKAGES="-lcui" FILES=files/ + +make image + +make info + +find . -name "*.trx" +find . -name "root.squashfs" +find . -name "*kernel.bin" diff --git a/OpenWrt/upload_asus_wl-500gp-v2.bash b/OpenWrt/upload_asus_wl-500gp-v2.bash index b5afa07..f51fd9c 100755 --- a/OpenWrt/upload_asus_wl-500gp-v2.bash +++ b/OpenWrt/upload_asus_wl-500gp-v2.bash @@ -6,3 +6,11 @@ atftp --trace --option "timeout 1000" --option "mode octet" --put --local-file o # 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'