#!/bin/sh case "$1" in install) . /etc/init.d/rc.functions if [ -z "$LANG" ]; then test -n "$QUIET" || hide_splash menu="de_DE Deutsch en_GB English" count=$(($(echo "$menu" | wc -w) / 2)) test -z "$QUIET" && dialog --clear --backtitle "$SYSTEM_NAME" --title "$(tr 'Language selection')" --menu "$(tr 'Please select your language')" $((8+$count)) 45 $count $menu 2>$$.tmp >${DIALOG_OUT-/dev/stdout} if [ $? = 0 ]; then LANG="$(cat $$.tmp | cut -d ' ' -f 1).UTF-8" rm -f $$.tmp else LANG="${menu%% *}.UTF-8" fi register_setting "LANG" "$LANG" "Sprache des Systems (ist ebenfalls in der /etc/profile eingetragen)" test -n "$QUIET" || show_splash fi if [ -z "$TIMEZONE" ]; then timezones="de_DE Europe/Berlin\nen_GB Europe/London" timezone="$(echo -e "$timezones" | grep "${LANG%%.*}" | cut -d " " -f 2)" register_setting "TIMEZONE" "$timezone" "timezone of the system" fi if [ -z "$KEYMAP" ]; then keymaps="de_DE de-latin1" keymap="$(echo -e "$keymaps" | grep "${LANG%%.*}" | cut -d " " -f 2)" register_setting "KEYMAP" "$keymap" "keymap to use" fi ;; uninstall) ;; depend) ;; *) echo "Usage $0 {install | uninstall | depend}" >&2 exit 1 esac