From b38399247c2f10e71e9ed50c51f28082006620f2 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 26 Jan 2024 23:27:38 -0500 Subject: linhes-system: lh_system_start.sh: add DesktopOnly option --- linhes/linhes-system/lh_system_start.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/linhes/linhes-system/lh_system_start.sh b/linhes/linhes-system/lh_system_start.sh index b042929..6a8f6b1 100755 --- a/linhes/linhes-system/lh_system_start.sh +++ b/linhes/linhes-system/lh_system_start.sh @@ -109,12 +109,12 @@ function first_configure(){ if [ -f /etc/systemconfig ]; then SystemType=$(grep SystemType= /etc/systemconfig | cut -d '"' -f 2) else - SystemType=$(kdialog --title "LinHES System Type" --combobox "Select the LinHES System Type: " "MasterBackend" "FrontendOnly" --default "MasterBackend") + SystemType=$(kdialog --title "LinHES System Type" --combobox "Select the LinHES System Type: " "MasterBackend" "FrontendOnly" "DesktopOnly" --default "MasterBackend") echo "SystemType=\"$SystemType\"" | sudo tee /etc/systemconfig fi #apply settings for specific system types msg "Setup as $SystemType" - if [ ! $SystemType = "FrontendOnly" ]; then + if [ $SystemType = "MasterBackend" ]; then # create media directory structure sudo mkdir -p /data/storage/disk0 sudo create_media_dirs.sh /data/storage/disk0 @@ -129,9 +129,19 @@ function first_configure(){ #nice -n 19 mythfilldatabase --quiet & #msg "Guide data is being loaded." "Until this completes some shows will appear as unknown in the program guide." localweb_setup - else + elif [ $SystemType = "FrontendOnly" ]; then msg "Frontend Only" #Frontend_only cmds + # create media directory structure + sudo mkdir -p /data/storage/disk0 + sudo create_media_dirs.sh /data/storage/disk0 + elif [ $SystemType = "DesktopOnly" ]; then + msg "Desktop Only" + #Frontend_only cmds + # create media directory structure + sudo mkdir -p /data/storage/disk0 + sudo create_media_dirs.sh /data/storage/disk0 + touch ~/.config/lh_dontrunmythfrontend fi touch ~/.config/lh_configured fi -- cgit v0.12