Move tailscaled to autostart to manage startup.

This commit is contained in:
fewtarius 2022-07-30 10:50:45 -04:00
parent f4804dfe7f
commit 9d4acefefa
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
3 changed files with 7 additions and 6 deletions

View file

@ -0,0 +1,3 @@
STATE=$(get_setting tailscale.up)
SVC="tailscaled"
DAEMONS=("tailscaled")

View file

@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present kkoshelev (https://github.com/kkoshelev)
# Copyright (C) 2022-present fewtarius (https://github.com/fewtarius)
PKG_NAME="tailscale"
PKG_VERSION="1.26.1"
@ -15,8 +16,8 @@ if [ ! "${TARGET_ARCH}" = "x86_64" ]; then
fi
pre_unpack() {
mkdir -p $PKG_BUILD
tar --strip-components=1 -xf $SOURCES/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tgz -C $PKG_BUILD tailscale_${PKG_VERSION}_arm64
mkdir -p ${PKG_BUILD}
tar --strip-components=1 -xf $SOURCES/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tgz -C ${PKG_BUILD} tailscale_${PKG_VERSION}_arm64
}
makeinstall_target() {
@ -28,6 +29,3 @@ makeinstall_target() {
cp -R ${PKG_DIR}/config/tailscaled.defaults ${INSTALL}/usr/config
}
post_install() {
enable_service tailscaled.service
}

View file

@ -3,7 +3,7 @@
# Copyright (C) 2020-present Fewtarius
PKG_NAME="emulationstation"
PKG_VERSION="6163e8e"
PKG_VERSION="9668c69"
PKG_GIT_CLONE_BRANCH="main"
PKG_REV="1"
PKG_ARCH="any"