Changes after first proving run
This commit is contained in:
@@ -8,7 +8,7 @@ NOCOLOR='\033[0m'
|
|||||||
|
|
||||||
echo -e "${GREEN}======== Starte Installation =========${NOCOLOR}"
|
echo -e "${GREEN}======== Starte Installation =========${NOCOLOR}"
|
||||||
|
|
||||||
read -p "Do you want to add a SystemD Servide for Autostart [y|n]" INPUT
|
read -p "Do you want to add a SystemD Service for Autostart [y|n]" INPUT
|
||||||
SYSD=1
|
SYSD=1
|
||||||
|
|
||||||
case $INPUT in
|
case $INPUT in
|
||||||
@@ -103,7 +103,6 @@ sudo systemctl daemon-reload
|
|||||||
|
|
||||||
if [ $SYSD -eq 0 ]
|
if [ $SYSD -eq 0 ]
|
||||||
then
|
then
|
||||||
USERSELECT=""
|
|
||||||
# Aktiviere den Service, damit er beim Booten gestartet wird
|
# Aktiviere den Service, damit er beim Booten gestartet wird
|
||||||
echo -e "${GREEN}======== Aktiviern des Dienstes ========${NOCOLOR}"
|
echo -e "${GREEN}======== Aktiviern des Dienstes ========${NOCOLOR}"
|
||||||
|
|
||||||
@@ -114,7 +113,6 @@ then
|
|||||||
echo -e "${GREEN}======== Starente des Dienstes ========${NOCOLOR}"
|
echo -e "${GREEN}======== Starente des Dienstes ========${NOCOLOR}"
|
||||||
sudo systemctl start $SERVICE_NAME
|
sudo systemctl start $SERVICE_NAME
|
||||||
else
|
else
|
||||||
USERSELECT= ""
|
|
||||||
echo -e "${CYAN_BACK} Automatic start of Playback disabled ${NOCOLOR}"
|
echo -e "${CYAN_BACK} Automatic start of Playback disabled ${NOCOLOR}"
|
||||||
echo -e "${CYAN_BACK} Did not start Service, to start use \"sudo systemctl start pivideo.service\" ${NOCOLOR}"
|
echo -e "${CYAN_BACK} Did not start Service, to start use \"sudo systemctl start pivideo.service\" ${NOCOLOR}"
|
||||||
fi
|
fi
|
||||||
@@ -122,8 +120,6 @@ fi
|
|||||||
if [ $GPPower -eq 0]
|
if [ $GPPower -eq 0]
|
||||||
then
|
then
|
||||||
echo "dtoverlay=gpio-shutdown,gpio-pin=3" | sudo tee /boot/config.txt > /dev/null
|
echo "dtoverlay=gpio-shutdown,gpio-pin=3" | sudo tee /boot/config.txt > /dev/null
|
||||||
else
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "${GREEN}=========================================================${NOCOLOR}"
|
echo -e "${GREEN}=========================================================${NOCOLOR}"
|
||||||
|
|||||||
Reference in New Issue
Block a user