#!/bin/sh # # Laed deutsche Tastaturbelegung case "$1" in start) . /etc/init.d/rc.functions if [ "$LANG" != "$LC_ALL" ]; then echo "Setting LANG:" update_config "LANG" "export LANG='$LANG'" /etc/profile update_config "LC_ALL" "export LC_ALL='$LANG'" /etc/profile fi echo "Setting timezone:" if [ -n "$TIMEZONE" ]; then ln -fs /usr/share/zoneinfo/$TIMEZONE /etc/localtime fi if [ -e /dev/misc/rtc ]; then hwclock -s -u fi check_status if [ -n "$KEYMAP" ]; then echo "Load keymap: $KEYMAP" loadkeys "$KEYMAP" >>/dev/stdlog 2>&1 check_status fi ;; stop) . /etc/init.d/rc.functions echo "Setting hardware clock:" if [ -e /dev/misc/rtc ]; then hwclock -w -u fi check_status ;; init) start=1 stop=1 priority=9 ;; *) echo "Usage $0 {start | stop}" >&2 exit 1 esac