title: rc.local file not working raspberry pi
body: <p>This is the contents of my <code>/etc/rc.local</code> file. It is supposed to run on login on my raspberry pi, yet it just logs in in (as I'm using auto login) and then does nothing, i.e. it just sits there with <code>pi@raspberrypi ~$_</code> waiting for a command. I have no idea why it's not working nor any experience with bash scripts.</p>
  
  <p>It should mount a usb then run a file on said usb but it doesn't.</p>
  
  <pre><code>    #!/bin/sh -e
      #
      # rc.local
      #
      # This script is executed at the end of each multiuser runlevel.
      # Make sure that the script will "exit 0" on success or any other
      # value on error.
      #
      # In order to enable or disable this script just change the execution
      # bits.
      #
      # By default this script does nothing.
  
  
      sudo /bin/mount /dev/sda1 /media/robousb
      sudo python media/robousb/Robopython/usercode_old.py
  
      exit 0
  </code></pre>