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 log after reboot:
Code:
Cannot open display "default display"
I also tried sleep X but it didn't work too!
Any help will be greatly appreciated.
Bookmarks