Last active
November 24, 2020 22:23
-
-
Save litan1106/cd29fb01b4ef15579ddaf6cb961d5253 to your computer and use it in GitHub Desktop.
entware-ng-dd-wrt-R7000-arm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Disable router dnsmasq and privoxy | |
Go to Setup and deactivate the DHCPD service | |
Go to Setup and disable DHCP Server and all dnsmasq options | |
Go to Service and disable all privoxy options | |
#Save startup script | |
/opt/etc/init.d/rc.unslung start | |
#Save shutdown script | |
/opt/etc/init.d/rc.unslung stop | |
#Enable USB support | |
Go to Services and enable following options: | |
[x] Core USB Support | |
[x] USB Storage Support | |
[x] Automatic Drive Mount | |
#Install entware-ng arm | |
wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | sh | |
#Reboot Router | |
#Entware Profile | |
/opt/etc/profile | |
#Opkg packages | |
opkg update | |
#Install nano | |
opkg install nano | |
#Install python3 | |
opkg install python3 | |
#Run python script as service at startup | |
nano /opt/etc/init.d/Sps4exploit | |
#!/bin/sh | |
sleep 5 | |
python3 /jffs/ps4-exploit-host-0.4.5/start.py & | |
#Install dnsmasq | |
opkg install dnsmasq-full | |
#Install privoxy | |
opkg install privoxy | |
#Copy privoxy settings | |
把basicsetting里的設定文件解壓, 放到 /etc/privoxy | |
#Copy privoxy files | |
https://github.com/yangqi/unblock_youku_privoxy_rules | |
#Start privoxy | |
/opt/etc/init.d/S24privoxy start | |
#Config dnsmasq conf | |
cp /opt/etc/dnsmasq.conf /opt/etc/dnsmasq.local.conf | |
touch /opt/etc/dnsmasq.local.resolv | |
touch /opt/etc/dnsmasq.local.hosts | |
#Set dnsmasq conf-file | |
nano /opt/etc/dnsmasq.conf | |
#Add local conf-file to dnsmasq.conf | |
conf-file=/opt/etc/dnsmasq.local.conf | |
#Add nameserver to dnsmasq.local.resolv | |
nameserver 75.75.75.75 | |
nameserver 75.75.76.76 | |
#Restart dnsmasq and privoxy | |
/opt/etc/init.d/S56dnsmasq restart | |
/opt/etc/init.d/S24privoxy start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment