mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
ipq806x: update some script paths
This commit is contained in:
parent
2652e567f5
commit
5c40fcd80e
@ -16,13 +16,6 @@ arris,rac2v1a)
|
|||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"1:lan" "2:lan" "3:lan" "4:lan" "6u@eth1" "0u@eth0"
|
"1:lan" "2:lan" "3:lan" "4:lan" "6u@eth1" "0u@eth0"
|
||||||
;;
|
;;
|
||||||
norton,core-518)
|
|
||||||
mac_addr=$(mtd_get_mac_ascii_mmc 0:APPSBLENV ethaddr)
|
|
||||||
ucidef_add_switch "switch0" \
|
|
||||||
"2:lan" "3:lan" "4:lan" "6u@eth1" "5:wan" "0u@eth0"
|
|
||||||
ucidef_set_interface_macaddr "lan" "$(macaddr_add $mac_addr 1)"
|
|
||||||
ucidef_set_interface_macaddr "wan" "$mac_addr"
|
|
||||||
;;
|
|
||||||
askey,rt4230w-rev6 |\
|
askey,rt4230w-rev6 |\
|
||||||
askey,rt4230w-rev9.3 |\
|
askey,rt4230w-rev9.3 |\
|
||||||
asrock,g10 |\
|
asrock,g10 |\
|
||||||
@ -76,6 +69,13 @@ tplink,c2600)
|
|||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "6@eth1" "5:wan" "0@eth0"
|
"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "6@eth1" "5:wan" "0@eth0"
|
||||||
;;
|
;;
|
||||||
|
norton,core-518)
|
||||||
|
hw_mac_addr=$(mtd_get_mac_ascii_mmc 0:APPSBLENV ethaddr)
|
||||||
|
ucidef_add_switch "switch0" \
|
||||||
|
"2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
|
||||||
|
ucidef_set_interface_macaddr "wan" "$hw_mac_addr"
|
||||||
|
ucidef_set_interface_macaddr "lan" "$(macaddr_add $hw_mac_addr 1)"
|
||||||
|
;;
|
||||||
qcom,ipq8064-ap161)
|
qcom,ipq8064-ap161)
|
||||||
ucidef_set_interface_lan "eth1 eth2"
|
ucidef_set_interface_lan "eth1 eth2"
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
|
@ -42,10 +42,4 @@ boot() {
|
|||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
|
||||||
echo 600000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
|
|
||||||
|
|
||||||
sysctl -w vm.min_free_kbytes=65536
|
|
||||||
sysctl -w net.netfilter.nf_conntrack_max=65535
|
|
||||||
}
|
}
|
||||||
|
@ -14,4 +14,10 @@ boot() {
|
|||||||
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
|
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
|
||||||
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||||
|
echo 600000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
|
||||||
|
|
||||||
|
sysctl -w vm.min_free_kbytes=65536
|
||||||
|
sysctl -w net.netfilter.nf_conntrack_max=65535
|
||||||
}
|
}
|
@ -7,11 +7,6 @@ preinit_reorder_eth() {
|
|||||||
ip link set eth1 name eth0
|
ip link set eth1 name eth0
|
||||||
ip link set ethtmp name eth1
|
ip link set ethtmp name eth1
|
||||||
;;
|
;;
|
||||||
ruijie,rg-mtfi-m520)
|
|
||||||
base_mac=$(mtd_get_mac_ascii PRODUCTINFO ethaddr)
|
|
||||||
ip link set dev eth0 address $(macaddr_add "$base_mac" 1)
|
|
||||||
ip link set dev eth1 address $(macaddr_add "$base_mac" 2)
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,6 +8,11 @@ preinit_set_mac_address() {
|
|||||||
ip link set dev eth0 address "${lan_mac}"
|
ip link set dev eth0 address "${lan_mac}"
|
||||||
ip link set dev eth1 address "${wan_mac}"
|
ip link set dev eth1 address "${wan_mac}"
|
||||||
;;
|
;;
|
||||||
|
ruijie,rg-mtfi-m520)
|
||||||
|
base_mac=$(mtd_get_mac_ascii PRODUCTINFO ethaddr)
|
||||||
|
ip link set dev eth0 address $(macaddr_add "$base_mac" 1)
|
||||||
|
ip link set dev eth1 address $(macaddr_add "$base_mac" 2)
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,5 +104,7 @@ norton_do_upgrade() {
|
|||||||
|
|
||||||
norton_do_flash $tar_file $kernel $rootfs
|
norton_do_flash $tar_file $kernel $rootfs
|
||||||
|
|
||||||
|
nand_do_upgrade "$1"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user