mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-10 01:25:58 +02:00
Allow restarts
This commit is contained in:
@@ -2,6 +2,21 @@
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
##################
|
||||
# ALLOW RESTARTS #
|
||||
##################
|
||||
|
||||
if [ -f /etc/cont-init.d/99-run.sh ]; then
|
||||
mkdir -p /etc/scripts-init
|
||||
sed -i "s|/etc/cont-init.d|/etc/scripts-init|g" /ha_entrypoint.sh
|
||||
sed -i "/ rm/d" /ha_entrypoint.sh
|
||||
cp /etc/cont-init.d/99-run.sh /etc/scripts-init/
|
||||
fi
|
||||
|
||||
######################
|
||||
# INSTALL TENSORFLOW #
|
||||
######################
|
||||
|
||||
# Check if the CPU supports AVX2
|
||||
if [[ "$(uname -m)" = "x86_64" ]]; then
|
||||
if lscpu | grep -q "Flags"; then
|
||||
|
||||
Reference in New Issue
Block a user