ar71xx: reset the ethernet device before registration
[openwrt.git] / target / linux / x86 / base-files / lib / upgrade / platform.sh
1 USE_REFRESH=1
2
3 platform_check_image() {
4 [ "$ARGC" -gt 1 ] && return 1
5
6 case "$(get_magic_word "$1")" in
7 eb48) return 0;;
8 *)
9 echo "Invalid image type"
10 return 1
11 ;;
12 esac
13 }
14
15 platform_do_upgrade() {
16 sync
17 get_image "$1" > /dev/hda
18 }
19
20 x86_prepare_ext2() {
21 # if we're running from ext2, we need to make sure that we have a mtd
22 # partition that points to the active rootfs partition.
23 # however this only matters if we actually need to preserve the config files
24 [ "$SAVE_CONFIG" -eq 1 ] || return 0
25 grep rootfs /proc/mtd >/dev/null || {
26 echo /dev/hda2,65536,rootfs > /sys/module/block2mtd/parameters/block2mtd
27 }
28 }
29 append sysupgrade_pre_upgrade x86_prepare_ext2
This page took 0.04897 seconds and 5 git commands to generate.