source: trunk/target/linux/ifxmips/base-files/lib/upgrade/platform.sh @ 13295

Last change on this file since 13295 was 13295, checked in by thl, 8 years ago

[ifxmips] some cleanups:

  • fix CPUID detection
  • update MTD map for checks and sysupgrade
  • enable subtargets (Generic&NFS) for simpler development
  • generic cleanups (e.g. from linux checkpatch.pl)
  • Property svn:executable set to *
File size: 434 bytes
Line 
1PART_NAME=linux
2
3platform_check_image() {
4        [ "$ARGC" -gt 1 ] && return 1
5
6        case "$(get_magic_word "$1")" in
7                # .trx files
8                2705) return 0;;
9                *)
10                        echo "Invalid image type"
11                        return 1
12                ;;
13        esac
14}
15
16# use default for platform_do_upgrade()
17
18disable_watchdog() {
19        killall watchdog
20        ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
21                echo 'Could not disable watchdog'
22                return 1
23        }
24}
25append sysupgrade_pre_upgrade disable_watchdog
Note: See TracBrowser for help on using the repository browser.