09_fix-seama-header 286 B

1234567891011121314151617
  1. #!/bin/sh
  2. . /lib/ar71xx.sh
  3. fix_seama_header() {
  4. local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd)
  5. [ "$kernel_size" ] && mtd -c 0x$kernel_size fixseama firmware
  6. }
  7. board=$(ar71xx_board_name)
  8. case "$board" in
  9. dir-869-a1)
  10. fix_seama_header
  11. ;;
  12. esac