Move tailscaled to autostart to manage startup.
This commit is contained in:
parent
f4804dfe7f
commit
9d4acefefa
3 changed files with 7 additions and 6 deletions
3
packages/jelos/sources/autostart/daemons/004-tailscaled
Normal file
3
packages/jelos/sources/autostart/daemons/004-tailscaled
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
STATE=$(get_setting tailscale.up)
|
||||||
|
SVC="tailscaled"
|
||||||
|
DAEMONS=("tailscaled")
|
|
@ -1,5 +1,6 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
# Copyright (C) 2022-present kkoshelev (https://github.com/kkoshelev)
|
# Copyright (C) 2022-present kkoshelev (https://github.com/kkoshelev)
|
||||||
|
# Copyright (C) 2022-present fewtarius (https://github.com/fewtarius)
|
||||||
|
|
||||||
PKG_NAME="tailscale"
|
PKG_NAME="tailscale"
|
||||||
PKG_VERSION="1.26.1"
|
PKG_VERSION="1.26.1"
|
||||||
|
@ -15,8 +16,8 @@ if [ ! "${TARGET_ARCH}" = "x86_64" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pre_unpack() {
|
pre_unpack() {
|
||||||
mkdir -p $PKG_BUILD
|
mkdir -p ${PKG_BUILD}
|
||||||
tar --strip-components=1 -xf $SOURCES/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tgz -C $PKG_BUILD tailscale_${PKG_VERSION}_arm64
|
tar --strip-components=1 -xf $SOURCES/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tgz -C ${PKG_BUILD} tailscale_${PKG_VERSION}_arm64
|
||||||
}
|
}
|
||||||
|
|
||||||
makeinstall_target() {
|
makeinstall_target() {
|
||||||
|
@ -28,6 +29,3 @@ makeinstall_target() {
|
||||||
cp -R ${PKG_DIR}/config/tailscaled.defaults ${INSTALL}/usr/config
|
cp -R ${PKG_DIR}/config/tailscaled.defaults ${INSTALL}/usr/config
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
|
||||||
enable_service tailscaled.service
|
|
||||||
}
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Copyright (C) 2020-present Fewtarius
|
# Copyright (C) 2020-present Fewtarius
|
||||||
|
|
||||||
PKG_NAME="emulationstation"
|
PKG_NAME="emulationstation"
|
||||||
PKG_VERSION="6163e8e"
|
PKG_VERSION="9668c69"
|
||||||
PKG_GIT_CLONE_BRANCH="main"
|
PKG_GIT_CLONE_BRANCH="main"
|
||||||
PKG_REV="1"
|
PKG_REV="1"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
|
|
Loading…
Reference in a new issue