summaryrefslogtreecommitdiffstats
path: root/linhes
diff options
context:
space:
mode:
Diffstat (limited to 'linhes')
-rwxr-xr-xlinhes/linhes-system/lh_system_start.sh16
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