[ubuntu] rc.local doesn't execute at startup

view story

http://ubuntuforums.org – When i do: sudo sh /etc/rc.local it works perfect but when i reboot my system, it wont start. There is my rc.local file: 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 setxkbmap tr exit 0 I've added >> /var/log/rc.local.log 2>&1 to end of my command for see what's wrong and i've got this error from the lo (Hardware)