Merge pull request #1420 from NeoTheFox/dev
Fix ZeroTier forgetting its network after a reboot
This commit is contained in:
commit
f286b0779e
3 changed files with 8 additions and 1 deletions
|
@ -29,5 +29,7 @@ makeinstall_target() {
|
|||
|
||||
mkdir -p ${INSTALL}/usr/lib/systemd/system
|
||||
cp -R ${PKG_DIR}/system.d/zerotier-one.service ${INSTALL}/usr/lib/systemd/system/
|
||||
mkdir -p ${INSTALL}/etc/profile.d/
|
||||
cp -R ${PKG_DIR}/profile.d/95-zerotier ${INSTALL}/etc/profile.d/
|
||||
}
|
||||
|
||||
|
|
5
packages/network/zerotier-one/profile.d/95-zerotier
Normal file
5
packages/network/zerotier-one/profile.d/95-zerotier
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (C) 2023-present NeoTheFox (https://github.com/NeoTheFox)
|
||||
|
||||
alias zerotier-cli="zerotier-cli -D/storage/.config/zerotier/"
|
|
@ -4,7 +4,7 @@ Wants=network-pre.target
|
|||
After=network-pre.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/zerotier-one
|
||||
ExecStart=/usr/sbin/zerotier-one /storage/.config/zerotier/
|
||||
Restart=always
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
|
Loading…
Reference in a new issue