Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- export LANG=de_DE.utf8
- export LC_COLLATE=de_DE.utf8
- export VDR_CHARSET_OVERRIDE=ISO-8859-9
- PATH=/usr/local/bin:$PATH
- VDRPRG="/usr/local/bin/vdr"
- #/usr/local/bin/vdr -D 0 -c ....
- VDRCMD="$VDRPRG -c /etc/vdr -E /etc/vdr/epg.data \
- -P eepg \
- -P epgsearch \
- -P'streamdev-server -a vdr:ichbineinpasswort -r /etc/vdr/plugins/streamdev-server/externremux.sh' \
- -P xvdr \
- -P vnsiserver5 \
- -P 'restfulapi --channellogos=/usr/share/vdr-channellogos --epgimages=/var/cache/vdr/epgimages' \
- -P vdrmanager \
- -u root \
- $*"
- KILL="/usr/bin/killall -q -TERM"
- # Detect whether the DVB driver is already loaded
- # and return 0 if it *is* loaded, 1 if not:
- DriverLoaded()
- {
- return 1
- }
- # Load all DVB driver modules needed for your hardware:
- LoadDriver ()
- {
- return 0
- }
- # Unload all DVB driver modules loaded in LoadDriver():
- UnloadDriver ()
- {
- return 0
- }
- # Load driver if it hasn't been loaded already:
- if ! DriverLoaded; then
- LoadDriver
- fi
- while (true) do
- eval "$VDRCMD"
- if test $? -eq 0 -o $? -eq 2; then exit; fi
- echo "`date` reloading DVB driver"
- $KILL $VDRPRG
- sleep 10
- UnloadDriver
- LoadDriver
- echo "`date` restarting VDR"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement