Added code syntax
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user