Use 2.6.25.6 for rdc
[openwrt.git] / target / linux / brcm-2.4 / base-files / lib / upgrade / platform.sh
1 platform_check_image() {
2 [ "$ARGC" -gt 1 ] && return 1
3
4 case "$(get_magic_word "$1")" in
5 # .trx files
6 4844) return 0;;
7 # .bin files
8 5735) return 0;;
9 *)
10 echo "Invalid image type"
11 return 1
12 ;;
13 esac
14 }
15
16 platform_do_upgrade() {
17 get_image "$1" > $(find_mtd_part "linux")
18 sync
19 }
20
21 brcm_prepare_mtd() {
22 [ "$SAVE_CONFIG" -eq 1 ] && return 0
23 }
24 append sysupgrade_pre_upgrade brcm_prepare_mtd
This page took 0.044844 seconds and 5 git commands to generate.