0

I am wrote a Bash script that will be run on log-on for the Raspberry Pi running Kali Linux.

The issue lies when the linux system starts up, I have to physically SSH into the terminal for the script to run! Why?

I put the script inside, .bash_profile, which is a known file to be called at start-up.

I also made sure to allow for automatic root log-on, after boot.

1 Answer 1

1

.bash_profile is executed when you login via tty or terminal emulator (or ssh), you should put your script into .profile instead.

10
  • Thanks for your response! Do I put it at the end of the file? Jun 4, 2016 at 11:59
  • exactly, put it at the end of file Jun 4, 2016 at 12:00
  • @AndroidDev I know, currently testing his idea and if it works I'll mark it as thus. Jun 4, 2016 at 12:12
  • Okay, I put the script call at the end of the .profile file, and rebooted the system. It had no effect. Jun 4, 2016 at 12:25
  • That's kind of strange. Only a blind call - have you marked your script as executable? Jun 4, 2016 at 13:04

Not the answer you're looking for? Browse other questions tagged .