Skip to content

Instantly share code, notes, and snippets.

@seancheung
Last active October 1, 2016 08:51
Show Gist options
  • Save seancheung/ed517ad12c41a5b77337de4fbdf1652e to your computer and use it in GitHub Desktop.
Save seancheung/ed517ad12c41a5b77337de4fbdf1652e to your computer and use it in GitHub Desktop.
openwrt initializing
#!/bin/bash
#first of all, to resolve the https issue, run these
opkg update
opkg install wget ca-certificates
#remove legacy shadowsocks lib and config
rm /etc/config/shadowsocks
#install shadowsocks-libdev
wget https://dl.bintray.com/aa65535/opkg/shadowsocks-libev/2.5.3/ramips/shadowsocks-libev_2.5.3-1_ramips_24kec.ipk && \
opkg install shadowsocks-libev_2.5.3-1_ramips_24kec.ipk
#install chinadns
wget https://github.com/aa65535/openwrt-chinadns/releases/download/v1.3.2-4/ChinaDNS_1.3.2-4_ramips_24kec.ipk && \
opkg install ChinaDNS_1.3.2-4_ramips_24kec.ipk
#install luci-app-shadowsocks
wget https://github.com/shadowsocks/luci-app-shadowsocks/releases/download/v1.3.6/luci-app-shadowsocks_1.3.6-1_all.ipk && \
opkg install luci-app-shadowsocks_1.3.6-1_all.ipk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment