diff options
author | Britney Fransen <brfransen@gmail.com> | 2024-01-27 04:27:38 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2024-01-27 04:27:38 (GMT) |
commit | b38399247c2f10e71e9ed50c51f28082006620f2 (patch) | |
tree | 1730e1287b553b37e38a099a3bf1ba5bc18bb04d | |
parent | 3b748fcf21738ba0f14778623d662a0dd0f3f5bf (diff) | |
download | linhes_pkgbuild-b38399247c2f10e71e9ed50c51f28082006620f2.zip linhes_pkgbuild-b38399247c2f10e71e9ed50c51f28082006620f2.tar.gz linhes_pkgbuild-b38399247c2f10e71e9ed50c51f28082006620f2.tar.bz2 |
linhes-system: lh_system_start.sh: add DesktopOnly option
-rwxr-xr-x | linhes/linhes-system/lh_system_start.sh | 16 |
1 files 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 |