As the binary cannot be downloaded, I've made a cpu_info file by pasting your code into it.
Copied to a temp folder on my XPEnology NAS. Then set executable attribute, but could only execute via sh command, then I get an error message.
root@FORESTER:/volume1/tibor/Temp# sh cpu_info
cpu_info: line 13: syntax error near unexpected token `$'in\r''
'pu_info: line 13: ` case "$Y_N" in
What did I wrong? I have DSM 6.2-23739 if that matters (don't think so).