title: line 1: ?#!/usr/bin/sh: not found when trying to execute a shell script
body: <p>I have a script called <strong>autoinstall</strong>:</p>
  
  <pre><code>#!/usr/bin/sh
  echo "Installasi membutuhkan free space minimal 2MB, pastikan ada punya cukup space di router anda"
  read -p "Anda yakin ingin melanjutkan installasi?(y/n) " -n 1 -r
  echo ""
  if [[ $REPLY = ^[Yy]$ ]]
  then
      cd /
      cd /tmp/
      tar -xvf OpenWrt_Angel_Beats_Edition_v1.3.3.tar -C /
      chmod -R 744 /root/crt
      chmod 744 /www/wget/wget_download.sh
      chmod 744 /usr/bin/gsm
      chmod 744 /usr/bin/profile
      opkg update &amp;&amp; opkg install elinks
      cp /etc/rc.local /etc/rc.local.backup
      cat &gt; /etc/rc.local &lt;&lt; END
      #!bin/sh
      # /etc/rc.local: Local system initialization script.
      #
      # Put any local startup commands in here. Also, if you have
      # anything that needs to be run at shutdown time you can
      # make an /etc/rc.d/rc.local_shutdown script and put those
      # commands in there.
      sh /www/wget/wget_download.sh &gt; /dev/null 2&gt;&amp;1 &amp;
      exit 0
  END
      killall sh /www/wget/wget_download.sh
      sh /www/wget/wget_download.sh &gt; /dev/null 2&gt;&amp;1 &amp;
      echo "File backup /etc/rc.local.backup telah dibuat, gunakan file ini untuk mengembalikan konfigurasi rc.local anda yang dulu jika diperlukan"
      echo "Installasi selesai. Jangan lupa di akun openvpn yang digunakan (/root/crt/xxx.ovpn) tambahkan baris ini:
      script-security 2
      up client-connect.sh"
  else
      echo ""
      echo "Installasi dibatalkan"
  fi
  </code></pre>
  
  <p>Every command that I put in the first line always gets the error above (<code>line 1:xxx not found</code>) and I'm sure I've typed in the correct command, even <code>echo</code> gives the error like that, how do I solve this? </p>