#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

pi_replace_wifidatfile_for_BZ() {
	if [ x"$(bdinfo country)" = x"BZ" ]; then
		sed -i "s/AutoChannelSkipList=52;/AutoChannelSkipList=36;40;44;48;52;/g" /etc/wireless/mediatek/mt7981.dbdc.b1.dat
		sed -i "s/149;153;157;161;165/165/g" /etc/wireless/mediatek/mt7981.dbdc.b1.dat
	fi
}

boot_hook_add preinit_main pi_replace_wifidatfile_for_BZ

