#!/bin/sh case $1 in setlang) . /etc/init.d/rc.functions if [ "$LANG" != "$LC_ALL" ]; then update_config "LANG" "export LANG='$LANG'" /etc/profile update_config "LC_ALL" "export LC_ALL='$LANG'" /etc/profile grep "OSDLanguage = $" /etc/vdr/setup.conf && rcvdr restart >/dev/null 2>&1 >/dev/stdlog 2>&1 fi ;; install_timezones) . /etc/init.d/rc.functions if [ -n "$LOCALES_INSTALL_TIMEZONES" ]; then apm install $LOCALES_INSTALL_TIMEZONES --start --activate while ps | grep -v grep | grep -q update_quick_start.sh; do sleep 1; done fi sed "/LOCALES_INSTALL_TIMEZONES=/d" -i /etc/rc.config ;; esac