summaryrefstree
path: root/vendor/bin/init.asus.setuartlog.sh
blob: 796448abd724c45f9cc14f93d845f9d86b59c910 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/system/bin/sh
audbg_mode=`getprop persist.asus.audbg`
if [ ".$audbg_mode" == ".0" ];then
		setprop sys.config.uartlog 0
		echo 0 > /proc/driver/audio_debug
elif [ ".$audbg_mode" == ".1" ];then
		setprop sys.config.uartlog 1
		echo 1 > /proc/driver/audio_debug
else
	echo "error persist.asus.audbg"
fi