X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=blobdiff_plain;f=scripts%2Fboot%2Fmisc-helpers.sh;h=abb2dd218ebc22134f18595de6d8e7b76a465fc8;hp=3f2d7fbf2ea43e0831e093407b12f06b8e5f320e;hb=dc6d1a0b26dae2b2197631bb4f94738a289e7b8a;hpb=a89bf1dc9bef0b4f62541e29e6b7684af39569bc diff --git a/scripts/boot/misc-helpers.sh b/scripts/boot/misc-helpers.sh index 3f2d7fb..abb2dd2 100755 --- a/scripts/boot/misc-helpers.sh +++ b/scripts/boot/misc-helpers.sh @@ -17,35 +17,6 @@ really_export () eval export "${STRING}"="${VALUE}" } -lang2locale() { - langpart="${1%%_*}" - if [ "$1" != "C" ]; then - # Match the language code with 3rd field in languagelist - line=$(grep -v "^#" /usr/share/live-boot/languagelist | cut -f1,3,6 -d\; | grep -v ';C$' | grep "^$langpart;") - if [ -n "$line" ]; then - if [ "$(echo "$line" | grep -c '')" -gt 1 ]; then - # More than one match; try matching the - # country as well. - countrypart="${1#*_}" - if [ "$countrypart" = "$1" ]; then - countryline="$(echo "$line" | head -n1)" - echo "${countryline##*;}" - return - fi - countrypart="${countrypart%%[@.]*}" - countryline="$(echo "$line" | grep ";$countrypart;" | head -n1 || true)" - if [ "$countryline" ]; then - echo "${countryline##*;}" - return - fi - fi - echo "${line##*;}" - fi - else - echo "C" - fi -} - is_in_list_separator_helper () { local sep=${1} shift