blog/_posts/2015-04-11-run-a-script-at-...

20 lines
610 B
Markdown

---
title: "Run a script at Raspberry boot"
date: 2015-04-11
url: run-a-script-at-rasbperry-boot
layout: post
category: Hacking
---
[![A missing blog post image](/img/blog/run-a-script-at-rasbperry-boot.png)](/img/blog/run-a-script-at-rasbperry-boot.png)
There is many ways to execute a script after the boot sequence of Raspberry, but the easier for me was to put it in the Kernel's local run commands.
To set it up, edit :
`# nano /etc/rc.local`
... and put your line execution before the IP part, like the example with a Python script like on the screen-shot upper.
> python /path/to/your/script.py &