-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk3.sh
29 lines (25 loc) · 1.01 KB
/
k3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cd /tmp
opkg update
opkg install libustream-openssl
opkg install curl
opkg install jq
opkg install luci-i18n-base-zh-cn
wget --no-check-certificate https://github.com/heham/k3/raw/master/brcmfmac4366c-pcie.bin-xiaoshan
wget --no-check-certificate https://github.com/heham/k3/raw/master/k3screenctrl.tar
mv /lib/firmware/brcm/brcmfmac4366c-pcie.bin /lib/firmware/brcm/brcmfmac4366c-pcie.bin0
cp ./brcmfmac4366c-pcie.bin-xiaoshan /lib/firmware/brcm/brcmfmac4366c-pcie.bin
chmod 755 /lib/firmware/brcm/brcmfmac4366c-pcie.bin
mkdir k3screenctrl
tar xvf ./k3screenctrl.tar -C k3screenctrl
cp -r ./k3screenctrl/lib/k3screenctrl/ /lib/k3screenctrl/
cp ./k3screenctrl/bin/k3screenctrl /usr/bin/
cp ./k3screenctrl/init.d/k3screenctrl /etc/init.d/
chmod 755 /usr/bin/k3screenctrl
chmod 755 /lib/k3screenctrl/*.*
chmod 755 /etc/init.d/k3screenctrl
ln -s /etc/init.d/k3screenctrl /etc/rc.d/S40k3screenctrl
rm /lib/firmware/brcm/brcmfmac4366c-pcie.bin0
rm ./brcmfmac4366c-pcie.bin-xiaoshan
rm ./k3screenctrl.tar
rm -rf ./k3screenctrl/
reboot