Bash script modified, added PrintfC on EndDevice