#!/bin/bash
case `kdialog --radiolist "Tilgjengelige handlinger for MythTV" normal "Normal" 0 tjener "Start tjener" 0 tjenklient "Start tjener og klient" 0 klient "Start klient" 0 stopp "Stopp tjener" 0 oppdater "Oppdater TV-program" 0` in
normal)
kdesu /etc/init.d/mythbackend start
/Alexander/Skript/førmyth
mythfrontend
kdesu /etc/init.d/mythbackend stop
;;
tjener)
kdesu /etc/init.d/mythbackend start
/Alexander/Skript/førmyth
;;
tjenklient)
kdesu /etc/init.d/mythbackend start
/Alexander/Skript/førmyth
mythfrontend
;;
klient)
mythfrontend
;;
stopp)
kdesu /etc/init.d/mythbackend stop
;;
oppdater)
kdesu "mythfilldatabase --refresh-today"
;;
esac
