Skip to content

Commit

Permalink
v 0.0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
khvalera committed May 1, 2022
1 parent bca9710 commit 94e1685
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 3 additions & 5 deletions install-snuglinux
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

CURRENT_VERSION=0.0.22
CURRENT_VERSION=0.0.0
INSTALL_PREFIX=/usr
PO_DIR=${INSTALL_PREFIX}/share/snuglinux

Expand Down Expand Up @@ -40,8 +40,6 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi

pacman -Sy

ping_server
if [ "$?" = 1 ]; then
exit 1;
Expand All @@ -51,10 +49,10 @@ edit_pacman_conf "/etc";

edit_pacman_mirrorlist "/etc";

download_updates_func;

checking_installed_packages;

download_updates_func;

select_type;

preparation_disk;
Expand Down
4 changes: 3 additions & 1 deletion install-snuglinux.func
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ system_language() {
return 1
fi
echo -e "LANG=${LANG_UTF8}" > ${PATH_FILE}/etc/locale.conf
#echo -e "KEYMAP=${LANG_SELECT}\nFONT=cyr-sun16\nFONT_MAP=" > ${PATH_FILE}/etc/vconsole.conf
echo -e "KEYMAP=${LANG_SELECT}\nFONT=cyr-sun16\nFONT_MAP=" > ${PATH_FILE}/etc/vconsole.conf
sed -i ${PATH_FILE}/etc/locale.gen -e "s|#\(en_US.UTF-8 UTF-8\)|\1|"
sed -i ${PATH_FILE}/etc/locale.gen -e "s|#\(${LANG_UTF8} UTF-8\)|\1|"
#sed -i ${PATH_FILE}/etc/locale.gen -e 's|#\(ru_RU.UTF-8 UTF-8\)|\1|'
Expand Down Expand Up @@ -777,6 +777,7 @@ install_basic_packages(){
exit 1;
fi
fi
chroot ${DIR_CHROOT} pacman -Sy
}

#=======================================
Expand Down Expand Up @@ -894,6 +895,7 @@ select_arm_type() {
#=======================================
checking_installed_packages(){
local ARM_PKG NOT_INSTALL_PKG
pacman -Sy
if [[ "$INSTALL_ARCH" == "arm" ]] && [[ $(uname -m) == "x86_64" ]] ; then
ARM_PKG="binfmt-qemu-static-sl";
fi
Expand Down

0 comments on commit 94e1685

Please sign in to comment.