Added code syntax

This commit is contained in:
Christoffer Martinsson
2018-10-28 17:32:30 +01:00
parent 3dc5a02dd7
commit e089b4e0da
6 changed files with 91 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ To run the cli then add the ip for the core to the command `haasp_cli --ip <CORE
### Enable autostart
Create file /etc/init.d/haasp and add following code (`sudo vi /etc/init.d/haasp`):
```
```bash
#! /bin/sh
### BEGIN INIT INFO
# Provides: haasp
@@ -74,7 +74,7 @@ esac
exit 0
```
```
Change the `USER=pi` if you don't use pi as user.
Make the init file executable:
@@ -84,7 +84,7 @@ Enable autostart of the file:
`sudo update-rc.d haasp defaults`
Make sure the user have privilege to run the init file as sudo without password prompt. If not then add following code to visudo:
```
```bash
# User privilege specification
%users ALL=(ALL) NOPASSWD: /etc/init.d/haasp
```