#!/bin/sh /etc/rc.common

START=99

USE_PROCD=1

flag_file="/etc/init.d/boot_conf.flag"

start_service() {
        if [ ! -f "$flag_file" ]; then
                echo "Running boot_conf start~"
                touch "$flag_file"
				chmod 444 /etc/wireless/mediatek/mt7986-ax6000.dbdc.b1.dat
				/usr/sbin/iwpriv rax0 e2p 191=4852
                	 	/usr/bin/ated -i rax0 -c "sync eeprom all"
        else
                echo "boot_conf has already run"
        fi

}


service_running() {
        if [ ! -f "$flag_file" ]; then
                echo "Running boot_conf start~"
                touch "$flag_file"
				chmod 444 /etc/wireless/mediatek/mt7986-ax6000.dbdc.b1.dat
				/usr/sbin/iwpriv rax0 e2p 191=4852
                	 	/usr/bin/ated -i rax0 -c "sync eeprom all"
        else
                echo "boot_conf has already run"
        fi
}

