blob: d9b9e602edfbca62577555721f8001bb159ef7d9 [file] [log] [blame]
developerfd40db22021-04-29 10:08:25 +08001#!/bin/sh
2
3mtk_common_init() {
4 echo "Running mtk failsafe script..."
5 echo "You can edit here : package/mtk/mtk_failsafe/file/mtk_failsafe.sh"
6 echo "mtk_common_init....."
7 mount_root
8 mount_root done
9 sync
10 echo 3 > /proc/sys/vm/drop_caches
11}
12
13mtk_wifi_init() {
14 echo "mtk_wifi_init....."
15 # once the bin is correct, unmark below
16 #insmod wifi_emi_loader
17 #rmmod wifi_emi_loader
18 #insmod mt_wifi
19 #ifconfig ra0 up
20 #ifconfig rax0 up
21}
22
23mtk_network_init() {
24 echo "mtk_network_init....."
25 # NOTE : LAN IP subnet should be 192.168.1.x
26 ifconfig eth0 0.0.0.0
27 brctl addbr br-lan
28 ifconfig br-lan 192.168.1.1 netmask 255.255.255.0 up
29 brctl addif br-lan eth0
30 #brctl addif br-lan ra0
31 #brctl addif br-lan rax0
32 ./etc/init.d/telnet start
33 #./usr/bin/ated
34}
35
36mtk_common_init
37mtk_wifi_init
38mtk_network_init
39