#!/bin/sh #Get EETI Debug information script. Version 1.0 (20201007) INFO_PATH="./eeti/info.html" DMESG_PATH="./eeti/dmesg" INFO_FOLDER="./eeti/" CheckPermission() { echo -n "(I) Check user permission:" account=`whoami` if [ ${account} = "root" ]; then echo " ${account}, you are the supervisor." else echo " ${account}, you are NOT the supervisor." echo "(E) The root permission is required to run this installer." echo "" exit 1 fi } CheckPermission echo "Start to collect log..." #Modify DebugBits CONFIG_FILE="/etc/eGTouchL.ini" DEBUG_BITS="FFFFF" sed -i '2d' $CONFIG_FILE sed -i '1a DebugEnableBits\t\t\t'`echo $DEBUG_BITS` $CONFIG_FILE #Restart driver eGTouchD -f sleep 5 #Create folder to put information mkdir $INFO_FOLDER touch $INFO_PATH chmod 666 $INFO_PATH #Print Information to file { echo "" echo "
" echo "=====CPU Arch.=====
=====Kernel version.=====
=====Distribution Info.=====
=====Display server=====
=====Xinput Info.=====
=====Input Devices=====