| 12345678910111213141516171819 |
- #!/bin/sh /etc/rc.common
- START=99
- boot() {
- case $(board_name) in
- alfa-network,quad-e4g)
- [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
- echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
- ;;
- linksys,ea7300-v1|\
- linksys,ea7500-v2)
- mtd resetbc s_env || true
- ;;
- samknows,whitebox-v8)
- fw_setenv bootcount 0
- ;;
- esac
- }
|