[Debian-hebrew-common] Re: what is hebrew localized debian ?

kobi zamir kobi_zamir at yahoo.com
Fri Jul 22 19:29:57 UTC 2005


Hi,

I made a new script that use debconf, this way it will
not break on upgrade. X keyboard work now from debconf
:-)

Kobi

=====================================================
file: hebrew-settings.sh
=====================================================

#! /bin/sh

# check for root
if [[ $USER != "root" ]]; then
        echo "hebrew-settings: you need to be root to
run this script"
        exit 1
fi

# create the preseed file
echo "
# locales preseed
locales locales/default_environment_locale string
he_IL.UTF-8
locales locales/locales_to_be_generated multiselect
he_IL.UTF-8 UTF-8,en_US.UTF-8 UTF-8, ar_JO.UTF-8 UTF-8

# xserver-xfree86 preseed
xserver-xfree86
xserver-xfree86/config/inputdevice/keyboard/layout
string us,il
xserver-xfree86
xserver-xfree86/config/inputdevice/keyboard/options
string grp:switch,grp:alt_shift_toggle,grp_led:scroll
" > ./hebrew.preseed

# preseed locales and xserver-xfree86
if [ -e ./hebrew.preseed ]; then
        debconf-set-selections ./hebrew.preseed
else
        echo "hebrew-settings: can't find preseed
file"
fi

# reconfigure locales and xserver-xfree86
if [ -e /var/lib/dpkg/info/locales.postinst ]; then
        cp /var/lib/dpkg/info/locales.postinst
./postinst.sh
        sh ./postinst.sh configure
        rm ./postinst.sh
fi

if [ -e /var/lib/dpkg/info/xserver-xfree86.postinst ];
then
        cp /var/lib/dpkg/info/xserver-xfree86.postinst
./postinst.sh
        sh ./postinst.sh configure
        rm ./postinst.sh
fi

=====================================================
file: hebrew.preseed
=====================================================

# locales preseed
locales locales/default_environment_locale string
he_IL.UTF-8
locales locales/locales_to_be_generated multiselect
he_IL.UTF-8 UTF-8,en_US.UTF-8 UTF-8, ar_JO.UTF-8 UTF-8

# xserver-xfree86 preseed
xserver-xfree86
xserver-xfree86/config/inputdevice/keyboard/layout
string us,il
xserver-xfree86
xserver-xfree86/config/inputdevice/keyboard/options
string grp:switch,grp:alt_shift_toggle,grp_led:scroll


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Debian-hebrew-common mailing list