summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/lh_system_start.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2023-01-21 21:48:19 (GMT)
committerBritney Fransen <brfransen@gmail.com>2023-01-21 21:48:19 (GMT)
commit7927c8435848ff230d3b052086aade3e092a155c (patch)
tree26c31a676c0ba279034afffc3021de389ecedeca /linhes/linhes-system/lh_system_start.sh
parent44cea7e84d7c67e820dc6d7b3152ab5007668f55 (diff)
downloadlinhes_pkgbuild-7927c8435848ff230d3b052086aade3e092a155c.zip
linhes_pkgbuild-7927c8435848ff230d3b052086aade3e092a155c.tar.gz
linhes_pkgbuild-7927c8435848ff230d3b052086aade3e092a155c.tar.bz2
linhes-system: lh_system_start.sh: save systemtype to /etc/systemconfig
Diffstat (limited to 'linhes/linhes-system/lh_system_start.sh')
-rwxr-xr-xlinhes/linhes-system/lh_system_start.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/linhes/linhes-system/lh_system_start.sh b/linhes/linhes-system/lh_system_start.sh
index b6133ee..d5a7646 100755
--- a/linhes/linhes-system/lh_system_start.sh
+++ b/linhes/linhes-system/lh_system_start.sh
@@ -6,7 +6,7 @@
HOSTNAME=`/usr/bin/hostnamectl hostname`
function msg(){
- /usr/bin/lh_notify-send --app-name="LinHES" --icon=dialog-information "$1" "$2" "$3"
+ /usr/bin/lh_notify-send --app-name="LinHES" --icon=dialog-information "$1" "$2"
}
function check_installer_user(){
@@ -64,9 +64,9 @@ function storage_scan(){
function install_lh_apps(){
#install programs that are not needed on the iso
- msg "--expire-time=30000" "Installing apps. This could take a few minutes."
+ /usr/bin/lh_notify-send --app-name="LinHES" --icon=dialog-information --expire-time=40000 "Installing apps." "This could take a few minutes."
sudo pacman -Syyy --noconfirm archlinux-keyring
- sudo pacman -Syyy --noconfirm flatpak firefox glances mythtv mythplugins-mytharchive mythplugins-mythmusic mythplugins-mythweb ncdu x11vnc
+ sudo pacman -Syyy --noconfirm flatpak firefox glances mlocate mythtv mythplugins-mytharchive mythplugins-mythmusic mythplugins-mythweb ncdu x11vnc
status=$?
[ $status -eq 1 ] && msg "Could not install apps. Check internet connection. Cancelling Setup." && exit 1
flatpak install tv.plex.PlexHTPC --noninteractive --assumeyes
@@ -100,8 +100,12 @@ function first_configure(){
nanorc_setup
bashrc_setup
x11vnc_setup
- SystemType=$(kdialog --title "LinHES System Type" --combobox "Select the LinHES System Type: " "MasterBackend" "FrontendOnly" --default "MasterBackend")
-
+ 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")
+ echo "SystemType=\"$SystemType\"" | sudo tee /etc/systemconfig
+ fi
#apply settings for specific system types
msg "Setup as $SystemType"
if [ ! $SystemType = "FrontendOnly" ]; then
@@ -127,7 +131,7 @@ function first_configure(){
}
function start_myth() {
- STARTCMD="/usr/bin/mythfrontend"
+ STARTCMD="/usr/bin/mythfrontend --systemd-journal"
$STARTCMD 2>&1 &
}