Skip to content

Commit 6e2dca6

Browse files
committed
adding back cd tmp command, pervious functionality fully restored.
1 parent 0c45905 commit 6e2dca6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

kocify.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,25 @@ function remove_keyboard_packages {
7171
sudo apt-get remove fcitx*
7272
}
7373

74+
function change_locale {
75+
sudo perl -pi -e 's/# es_MX.UTF-8 UTF-8/es_MX.UTF-8 UTF-8/g' /etc/locale.gen
76+
sudo perl -pi -e 's/en_GB.UTF-8 UTF-8/# en_GB.UTF-8 UTF-8/g' /etc/locale.gen
77+
#sudo rm -rf /etc/default/locale
78+
sudo perl -pi -e 's/en_GB.UTF-8/es_MX.UTF-8/g' /etc/default/locale
79+
sudo locale-gen
80+
# seams to fail
81+
sudo update-locale es_MX.UTF-8
82+
sudo localedef -v -c -i es_MX -f UTF-8 es_MX.UTF-8
83+
sudo locale -a
84+
}
85+
7486
function change_timezone {
7587
sudo rm /etc/localtime
7688
sudo ln -s /usr/share/zoneinfo/America/Mexico_City /etc/localtime
7789
}
7890

7991
function ubermix_download_background_image {
92+
cd /tmp/
8093
wget https://raw.githubusercontent.com/kidsoncomputers/kocifier/master/assets/Wallpaper%204x3.png
8194
sudo cp 'Wallpaper 4x3.png' /usr/share/backgrounds
8295
sudo chmod a+rw /usr/share/backgrounds/*
@@ -129,6 +142,7 @@ function raspbian_kocify {
129142
install_software
130143
raspbian_background_main
131144
change_timezone
145+
change_locale
132146
}
133147

134148
check_distro

0 commit comments

Comments
 (0)