function _echo () { ??????? local info=$* ??????? echo -e "\e[1;33m ${info} \e[0m"? |tee -a $PatchLog }
function runcheck() { ??? if [ "`id -u`" -ne 0 ] ??? then ??????? echo -e "\033[31m"$0:this script must be run as root!" \033[0m" ??????? exit 1 ??? elif [ "`uname -p`" !=? "x86_64" ] ??? then ??????? echo -e "\033[31m"$0:this script must be run on x86_64!" \033[0m" ??????? exit 1 ??? else ?????? mkdir -p $BackupDir >>/dev/null ??? fi }