Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions meshtasticd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ define Package/meshtasticd/Default
SUBMENU:=Meshtastic
TITLE:=Meshtastic daemon
URL:=https://github.com/meshtastic/firmware
USERID:=meshtasticd:meshtasticd
endef

# Leaving a possibility for adding a light variant without the web UI support if
Expand Down
4 changes: 4 additions & 0 deletions meshtasticd/files/meshtasticd.init
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ start_service() {

mkdir -p "$data_dir"

chown -R meshtasticd:meshtasticd "$data_dir"
chown -R meshtasticd:meshtasticd "$config_dir"

# meshtasticd needs to be run from its data directory
cd "$data_dir"

procd_open_instance
procd_set_param user meshtasticd
procd_set_param command "$PROG"
procd_append_param command --fsdir="$data_dir"
procd_set_param file "$config_file"
Expand Down