Skip to content

The openwrt relative script like build firmwares with ImageBuilder

License

Notifications You must be signed in to change notification settings

liaoya/openwrt-scripts

Repository files navigation

README

I use OpenWRT imagebuilder to assemble firmware for my own router. Fix the luci language display

opkg install --force-reinstall luci-i18n-base-zh-cn luci-i18n-firewall-zh-cn luci-i18n-opkg-zh-cn

The following command fix the directory name

while IFS= read -r -d "" _dir; do
    mv "${_dir}" "${_dir}-nand"
done < <(find . -iname "ath79" -type d -print0)

while IFS= read -r -d "" _dir; do
    mv "${_dir}" $(dirname "${_dir}")/ramips-$(basename "${_dir}")
done < <(find . \( -iname "mt7621" -o -iname "mt7620" \) -type d -print0)

while IFS= read -r -d "" _dir; do
    mv "${_dir}" $(dirname "${_dir}")/x86-64
done < <(find . -iname "x64" -type d -print0)

Adblock

uci set adblock.global.adb_enabled=1
uci set adblock.reg_cn.enabled=1
uci set adblock.youtube.enabled=1
uci changes
uci commit

Mirror

V2ray

wget -O kuoruan-public.key http://openwrt.kuoruan.net/packages/public.key
opkg-key add kuoruan-public.key
echo "src/gz kuoruan_universal http://openwrt.kuoruan.net/packages/releases/all" >> /etc/opkg/customfeeds.conf
opkg update
opkg install luci-app-v2ray
opkg install luci-i18n-v2ray-zh-cn

AD Block

sshfs

sshfs -o allow_other 3080:/work/openwrt /work/openwrt
sshfs -o allow_other 3080:/work/immortalwrt /work/immortalwrt

Reference

About

The openwrt relative script like build firmwares with ImageBuilder

Resources

License

Stars

Watchers

Forks

Packages

No packages published