mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +00:00
Minor bugfix
This commit is contained in:
parent
6e711e07a9
commit
cefba97714
16
meta-hassio/classes/resin-connectable-service.bbclass
Normal file
16
meta-hassio/classes/resin-connectable-service.bbclass
Normal file
@ -0,0 +1,16 @@
|
||||
# resin-connectable-service bbclass
|
||||
#
|
||||
# Author: Andrei Gherzan <andrei@resin.io>
|
||||
|
||||
python __anonymous() {
|
||||
# Enable/disable systemd services listed in RESIN_CONNECTABLE_SERVICES based on
|
||||
# RESIN_CONNECTABLE_ENABLE_SERVICES
|
||||
|
||||
pn = d.getVar('PN', True)
|
||||
services = d.getVar('RESIN_CONNECTABLE_SERVICES', True).split()
|
||||
|
||||
if pn in services:
|
||||
d.setVar('SYSTEMD_AUTO_ENABLE', 'enable')
|
||||
|
||||
}
|
||||
systemd_populate_packages[vardeps] += "RESIN_CONNECTABLE_ENABLE_SERVICES"
|
@ -3,3 +3,4 @@ require conf/distro/include/resin-os.inc
|
||||
|
||||
PREFERRED_PROVIDER_docker-disk = "docker-resin-supervisor-disk"
|
||||
RESIN_CONNECTABLE_SERVICES_remove = "openvpn"
|
||||
DISTRO_FEATURES_remove = "development-image"
|
||||
|
@ -51,6 +51,7 @@ done
|
||||
|
||||
# Don't souce before parsing args - resin-vars parses args too
|
||||
source /usr/sbin/resin-vars
|
||||
source /etc/resin-supervisor/supervisor.conf
|
||||
|
||||
# A temporary file used until next reboot
|
||||
UPDATECONF=/tmp/update-supervisor.conf
|
||||
|
@ -16,9 +16,6 @@ FILES_${PN} += " \
|
||||
do_install_append() {
|
||||
mkdir -p ${D}/home/root/.ssh
|
||||
|
||||
install -d ${D}${sysconfdir}/default
|
||||
sed -i '/DROPBEAR_EXTRA_ARGS="-g"/d' ${D}/etc/default/dropbear
|
||||
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/sync-authorized-keys.sh ${D}${bindir}
|
||||
|
||||
|
@ -0,0 +1,3 @@
|
||||
|
||||
RDEPENDS_${PN}.remove = "resin-connectable"
|
||||
RDEPENDS_${PN}.remove = "resin-provisioner"
|
@ -42,12 +42,6 @@ if [ -z "$CONFIG_PATH" ]; then
|
||||
CONFIG_PATH=$BOOT_MOUNTPOINT/config.json
|
||||
fi
|
||||
|
||||
# Resin supervisor variables
|
||||
source /etc/resin-supervisor/supervisor.conf
|
||||
|
||||
# ResinOS variables
|
||||
source /etc/hassio.conf
|
||||
|
||||
# If config.json provides redefinitions for our vars let us rewrite their
|
||||
# runtime value
|
||||
if [ -f $CONFIG_PATH ]
|
||||
|
@ -13,6 +13,8 @@ source /etc/profile
|
||||
|
||||
# load config
|
||||
source /usr/sbin/resin-vars
|
||||
source /etc/resin-supervisor/supervisor.conf
|
||||
source /etc/hassio.conf
|
||||
|
||||
# Help function
|
||||
function help {
|
||||
|
Loading…
x
Reference in New Issue
Block a user