mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
rename archboot-locale to archboot-localize
This commit is contained in:
parent
5c660f2593
commit
b5807012dd
13 changed files with 65 additions and 64 deletions
|
@ -11,7 +11,7 @@ archboot_base_common_cleanup archboot_base archboot_base_cleanup archboot_filesy
|
||||||
archboot_filesystems_cleanup archboot_net archboot_net_cleanup archboot_acpi \
|
archboot_filesystems_cleanup archboot_net archboot_net_cleanup archboot_acpi \
|
||||||
archboot_cpufreq archboot_devicemapper archboot_hypervisor archboot_net_common \
|
archboot_cpufreq archboot_devicemapper archboot_hypervisor archboot_net_common \
|
||||||
archboot_platform archboot_wireless archboot_installer_common archboot_installer \
|
archboot_platform archboot_wireless archboot_installer_common archboot_installer \
|
||||||
archboot_installer_cleanup archboot_clock archboot_keymap archboot_motd archboot_mdadm \
|
archboot_installer_cleanup archboot_clock archboot_vconsole archboot_motd archboot_mdadm \
|
||||||
archboot_lvm2 archboot_remote archboot_kexec archboot_efibootmgr archboot_pciutils \
|
archboot_lvm2 archboot_remote archboot_kexec archboot_efibootmgr archboot_pciutils \
|
||||||
archboot_usbutils archboot_smartmontools archboot_licenses archboot_neovim \
|
archboot_usbutils archboot_smartmontools archboot_licenses archboot_neovim \
|
||||||
archboot_secure_boot archboot_efivar archboot_lshw)
|
archboot_secure_boot archboot_efivar archboot_lshw)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
HOOKS=(archboot_firmware archboot_common_modules archboot_kms archboot_block_modules \
|
HOOKS=(archboot_firmware archboot_common_modules archboot_kms archboot_block_modules \
|
||||||
archboot_base_common archboot_base archboot_installer_common archboot_installer \
|
archboot_base_common archboot_base archboot_installer_common archboot_installer \
|
||||||
archboot_clock archboot_keymap archboot_acpi archboot_motd archboot_net_common \
|
archboot_clock archboot_vconsole archboot_acpi archboot_motd archboot_net_common \
|
||||||
archboot_net archboot_devicemapper archboot_mdadm archboot_lvm2 \
|
archboot_net archboot_devicemapper archboot_mdadm archboot_lvm2 \
|
||||||
archboot_filesystems archboot_remote archboot_cpufreq archboot_kexec \
|
archboot_filesystems archboot_remote archboot_cpufreq archboot_kexec \
|
||||||
archboot_efibootmgr archboot_pciutils archboot_usbutils archboot_smartmontools \
|
archboot_efibootmgr archboot_pciutils archboot_usbutils archboot_smartmontools \
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
HOOKS=(archboot_firmware archboot_common_modules archboot_kms archboot_block_modules \
|
HOOKS=(archboot_firmware archboot_common_modules archboot_kms archboot_block_modules \
|
||||||
archboot_base_common archboot_base archboot_installer_common archboot_installer \
|
archboot_base_common archboot_base archboot_installer_common archboot_installer \
|
||||||
archboot_clock archboot_keymap archboot_acpi archboot_motd archboot_net_common \
|
archboot_clock archboot_vconsole archboot_acpi archboot_motd archboot_net_common \
|
||||||
archboot_net archboot_devicemapper archboot_mdadm archboot_lvm2 \
|
archboot_net archboot_devicemapper archboot_mdadm archboot_lvm2 \
|
||||||
archboot_filesystems archboot_remote archboot_kexec archboot_efibootmgr \
|
archboot_filesystems archboot_remote archboot_kexec archboot_efibootmgr \
|
||||||
archboot_pciutils archboot_usbutils archboot_smartmontools archboot_licenses \
|
archboot_pciutils archboot_usbutils archboot_smartmontools archboot_licenses \
|
||||||
|
|
|
@ -11,7 +11,7 @@ archboot_base_common_cleanup archboot_base archboot_base_cleanup archboot_filesy
|
||||||
archboot_filesystems_cleanup archboot_net archboot_net_cleanup archboot_acpi \
|
archboot_filesystems_cleanup archboot_net archboot_net_cleanup archboot_acpi \
|
||||||
archboot_cpufreq archboot_devicemapper archboot_hypervisor archboot_net_common \
|
archboot_cpufreq archboot_devicemapper archboot_hypervisor archboot_net_common \
|
||||||
archboot_dmidecode archboot_platform archboot_wireless archboot_installer_common \
|
archboot_dmidecode archboot_platform archboot_wireless archboot_installer_common \
|
||||||
archboot_installer archboot_installer_cleanup archboot_clock archboot_keymap \
|
archboot_installer archboot_installer_cleanup archboot_clock archboot_vconsole \
|
||||||
archboot_motd archboot_mdadm archboot_lvm2 archboot_remote archboot_kexec \
|
archboot_motd archboot_mdadm archboot_lvm2 archboot_remote archboot_kexec \
|
||||||
archboot_efibootmgr archboot_pciutils archboot_usbutils archboot_smartmontools \
|
archboot_efibootmgr archboot_pciutils archboot_usbutils archboot_smartmontools \
|
||||||
archboot_licenses archboot_neovim archboot_secure_boot archboot_efivar archboot_lshw)
|
archboot_licenses archboot_neovim archboot_secure_boot archboot_efivar archboot_lshw)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
HOOKS=(archboot_firmware archboot_common_modules archboot_block_modules archboot_kms \
|
HOOKS=(archboot_firmware archboot_common_modules archboot_block_modules archboot_kms \
|
||||||
archboot_base_common archboot_base archboot_installer_common archboot_installer \
|
archboot_base_common archboot_base archboot_installer_common archboot_installer \
|
||||||
archboot_clock archboot_keymap archboot_acpi archboot_motd archboot_net_common \
|
archboot_clock archboot_vconsole archboot_acpi archboot_motd archboot_net_common \
|
||||||
archboot_net archboot_devicemapper archboot_mdadm archboot_lvm2 \
|
archboot_net archboot_devicemapper archboot_mdadm archboot_lvm2 \
|
||||||
archboot_filesystems archboot_remote archboot_cpufreq archboot_kexec \
|
archboot_filesystems archboot_remote archboot_cpufreq archboot_kexec \
|
||||||
archboot_efibootmgr archboot_pciutils archboot_usbutils archboot_smartmontools \
|
archboot_efibootmgr archboot_pciutils archboot_usbutils archboot_smartmontools \
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
# written by Tobias Powalowski <tpowa@archlinux.org>
|
# written by Tobias Powalowski <tpowa@archlinux.org>
|
||||||
_ANSWER="/tmp/.locale"
|
_ANSWER="/tmp/.localize"
|
||||||
_RUNNING_ARCH="$(uname -m)"
|
_RUNNING_ARCH="$(uname -m)"
|
||||||
_TITLE="Archboot ${_RUNNING_ARCH} | Arch Linux Setup | System Wide Locale Setting"
|
_TITLE="Archboot ${_RUNNING_ARCH} | Arch Linux Setup | Locale Configuration"
|
||||||
# _dialog()
|
# _dialog()
|
||||||
# an el-cheapo dialog wrapper
|
# an el-cheapo dialog wrapper
|
||||||
#
|
#
|
||||||
|
@ -16,50 +16,50 @@ _dialog() {
|
||||||
|
|
||||||
_abort() {
|
_abort() {
|
||||||
_dialog --yesno "Abort Arch Linux System Wide Locale Setting?" 5 60 || return 0
|
_dialog --yesno "Abort Arch Linux System Wide Locale Setting?" 5 60 || return 0
|
||||||
[[ -e /tmp/.locale-running ]] && rm /tmp/.locale-running
|
[[ -e /tmp/.localize-running ]] && rm /tmp/.localize-running
|
||||||
[[ -e /tmp/.locale ]] && rm /tmp/.locale
|
[[ -e /tmp/.localize ]] && rm /tmp/.localize
|
||||||
clear
|
clear
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
_do_locale() {
|
_localize_menu() {
|
||||||
_dialog --infobox "Setting System Wide Locale ${_LOCALE}.UTF-8..." 3 50
|
|
||||||
echo "LANG=${_LOCALE}.UTF-8" > /etc/locale.conf
|
|
||||||
echo "LANG=${_LOCALE}.UTF-8" > /tmp/.locale
|
|
||||||
echo LC_COLLATE=C >> /etc/locale.conf
|
|
||||||
localectl set-locale "${_LOCALE}.UTF-8" &>/dev/null
|
|
||||||
sed -i -e "s:^[a-z]:#&:g" /etc/locale.gen
|
|
||||||
sed -i -e "s:^#${_LOCALE}.UTF-8:${_LOCALE}.UTF-8:g" /etc/locale.gen
|
|
||||||
locale-gen &>/dev/null
|
|
||||||
sleep 2
|
|
||||||
}
|
|
||||||
|
|
||||||
_set_locale() {
|
|
||||||
_LOCALE=""
|
_LOCALE=""
|
||||||
_LOCALES="en_US English de_DE German es_ES Spanish fr_FR French pt_PT Portuguese OTHER Other"
|
_LOCALES="en_US English de_DE German es_ES Spanish fr_FR French pt_PT Portuguese OTHER Other"
|
||||||
_OTHER_LOCALES="be_BY Belarusian bg_BG Bulgarian cs_CZ Czech da_DK Dansk fi_FI Finnish el_GR Greek hu_HU Hungarian it_IT Italian lt_LT Lithuanian lv_LV Latvian mk_MK Macedonian nl_NL Dutch nn_NO Norwegian pl_PL Polish ro_RO Romanian ru_RU Russian sk_SK Slovak sr_RS Serbian sv_SE Swedish uk_UA Ukrainian"
|
_OTHER_LOCALES="be_BY Belarusian bg_BG Bulgarian cs_CZ Czech da_DK Dansk fi_FI Finnish el_GR Greek hu_HU Hungarian it_IT Italian lt_LT Lithuanian lv_LV Latvian mk_MK Macedonian nl_NL Dutch nn_NO Norwegian pl_PL Polish ro_RO Romanian ru_RU Russian sk_SK Slovak sr_RS Serbian sv_SE Swedish uk_UA Ukrainian"
|
||||||
_CANCEL=""
|
_CANCEL=""
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
_dialog --menu "Select A System Wide Locale:" 13 35 6 ${_LOCALES} 2>${_ANSWER} || _abort
|
_dialog --title " Locale Menu " --menu "" 12 35 5 ${_LOCALES} 2>${_ANSWER} || _abort
|
||||||
_LOCALE=$(cat ${_ANSWER})
|
_LOCALE=$(cat ${_ANSWER})
|
||||||
if [[ "${_LOCALE}" == "OTHER" ]]; then
|
if [[ "${_LOCALE}" == "OTHER" ]]; then
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
_dialog --menu "Select A System Wide Locale:" 18 35 12 ${_OTHER_LOCALES} 2>${_ANSWER} || _abort
|
_dialog --title " Other Locale Menu " --menu "" 17 35 11 ${_OTHER_LOCALES} 2>${_ANSWER} || _abort
|
||||||
_LOCALE=$(cat ${_ANSWER})
|
_LOCALE=$(cat ${_ANSWER})
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ -e /tmp/.locale-running ]]; then
|
_localize() {
|
||||||
echo "System Wide Locale Setting already runs on a different console!"
|
_dialog --infobox "Locale configuration set to ${_LOCALE}.UTF-8..." 3 50
|
||||||
echo "Please remove /tmp/.locale-running first!"
|
echo "LANG=${_LOCALE}.UTF-8" > /etc/localize.conf
|
||||||
|
echo "LANG=${_LOCALE}.UTF-8" > /tmp/.localize
|
||||||
|
echo LC_COLLATE=C >> /etc/localize.conf
|
||||||
|
localizectl set-localize "${_LOCALE}.UTF-8" &>/dev/null
|
||||||
|
sed -i -e "s:^[a-z]:#&:g" /etc/localize.gen
|
||||||
|
sed -i -e "s:^#${_LOCALE}.UTF-8:${_LOCALE}.UTF-8:g" /etc/localize.gen
|
||||||
|
localize-gen &>/dev/null
|
||||||
|
sleep 2
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ -e /tmp/.localize-running ]]; then
|
||||||
|
echo "Locale configuration already runs on a different console!"
|
||||||
|
echo "Please remove /tmp/.localize-running first!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
: >/tmp/.locale-running
|
: >/tmp/.localize-running
|
||||||
while [[ -z ${_LOCALE} ]]; do
|
while [[ -z ${_LOCALE} ]]; do
|
||||||
_set_locale
|
_localize_menu
|
||||||
done
|
done
|
||||||
_do_locale
|
_localize
|
||||||
[[ -e /tmp/.locale-running ]] && rm /tmp/.locale-running
|
[[ -e /tmp/.localize-running ]] && rm /tmp/.localize-running
|
||||||
clear
|
clear
|
||||||
exit 0
|
exit 0
|
||||||
# vim: set ts=4 sw=4 et:
|
# vim: set ts=4 sw=4 et:
|
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
# written by Tobias Powalowski <tpowa@archlinux.org>
|
# written by Tobias Powalowski <tpowa@archlinux.org>
|
||||||
_ANSWER="/tmp/.km"
|
_ANSWER="/tmp/.vconsole"
|
||||||
_RUNNING_ARCH="$(uname -m)"
|
_RUNNING_ARCH="$(uname -m)"
|
||||||
_TITLE="Archboot ${_RUNNING_ARCH} | Arch Linux Setup | Console Configuration"
|
_TITLE="Archboot ${_RUNNING_ARCH} | Arch Linux Setup | Vconsole Configuration"
|
||||||
_LIST_MAPS="localectl list-keymaps --no-pager"
|
_LIST_MAPS="localectl list-keymaps --no-pager"
|
||||||
# _dialog()
|
# _dialog()
|
||||||
# an el-cheapo dialog wrapper
|
# an el-cheapo dialog wrapper
|
||||||
|
@ -16,9 +16,9 @@ _dialog() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_abort() {
|
_abort() {
|
||||||
if _dialog --yesno "Abort Arch Linux Console Configuration?" 5 50; then
|
if _dialog --yesno "Abort Arch Linux Vconsole Configuration?" 5 50; then
|
||||||
[[ -e /tmp/.km-running ]] && rm /tmp/.km-running
|
[[ -e /tmp/.vconsole-running ]] && rm /tmp/.vconsole-running
|
||||||
[[ -e /tmp/.km ]] && rm /tmp/.km
|
[[ -e /tmp/.vconsole ]] && rm /tmp/.vconsole
|
||||||
clear
|
clear
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
@ -27,12 +27,12 @@ _abort() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_do_vconsole() {
|
_do_vconsole() {
|
||||||
_dialog --infobox "Setting console font ${_FONT} and keymap ${_KEYMAP}..." 3 80
|
_dialog --infobox "Setting vconsole font ${_FONT} and keymap ${_KEYMAP}..." 3 80
|
||||||
echo KEYMAP="${_KEYMAP}" > /etc/vconsole.conf
|
echo KEYMAP="${_KEYMAP}" > /etc/vconsole.conf
|
||||||
echo FONT="${_FONT}" >> /etc/vconsole.conf
|
echo FONT="${_FONT}" >> /etc/vconsole.conf
|
||||||
systemctl restart systemd-vconsole-setup
|
systemctl restart systemd-vconsole-setup
|
||||||
sleep 2
|
sleep 2
|
||||||
_dialog --infobox "Console Font and Keymap setting completed successfully.\nContinuing in 5 seconds..." 4 60
|
_dialog --infobox "Vconsole configuration completed successfully.\nContinuing in 5 seconds..." 4 60
|
||||||
sleep 5
|
sleep 5
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ _set_vconsole() {
|
||||||
_FONTS="ter-v16n Worldwide latarcyrheb-sun16 Worldwide eurlatgr Europe"
|
_FONTS="ter-v16n Worldwide latarcyrheb-sun16 Worldwide eurlatgr Europe"
|
||||||
fi
|
fi
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
if _dialog --menu " Select Console Font:\n\n Font Name Region" 12 40 14 ${_FONTS} 2>${_ANSWER}; then
|
if _dialog --menu " Select Vconsole Font:\n\n Font Name Region" 12 40 14 ${_FONTS} 2>${_ANSWER}; then
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
_FONT=$(cat ${_ANSWER})
|
_FONT=$(cat ${_ANSWER})
|
||||||
_CONTINUE=1
|
_CONTINUE=1
|
||||||
|
@ -96,20 +96,20 @@ _set_vconsole() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ -e /tmp/.km-running ]]; then
|
if [[ -e /tmp/.vconsole-running ]]; then
|
||||||
echo "km already runs on a different console!"
|
echo "vconsole already runs on a different vconsole!"
|
||||||
echo "Please remove /tmp/.km-running first to launch tz!"
|
echo "Please remove /tmp/.vconsole-running first to launch vconsole!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
: >/tmp/.km-running
|
: >/tmp/.vconsole-running
|
||||||
if ! _set_vconsole; then
|
if ! _set_vconsole; then
|
||||||
[[ -e /tmp/.km ]] && rm /tmp/.km
|
[[ -e /tmp/.vconsole ]] && rm /tmp/.vconsole
|
||||||
[[ -e /tmp/.km-running ]] && rm /tmp/.km-running
|
[[ -e /tmp/.vconsole-running ]] && rm /tmp/.vconsole-running
|
||||||
clear
|
clear
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
[[ -e /tmp/.km ]] && rm /tmp/.km
|
[[ -e /tmp/.vconsole ]] && rm /tmp/.vconsole
|
||||||
[[ -e /tmp/.km-running ]] && rm /tmp/.km-running
|
[[ -e /tmp/.vconsole-running ]] && rm /tmp/.vconsole-running
|
||||||
_do_vconsole
|
_do_vconsole
|
||||||
clear
|
clear
|
||||||
exit 0
|
exit 0
|
|
@ -140,12 +140,12 @@ _set_guid() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_configure_vconsole() {
|
_configure_vconsole() {
|
||||||
if [[ -e /usr/bin/km ]]; then
|
if [[ -e /usr/bin/vconsole ]]; then
|
||||||
km && _NEXTITEM=1
|
vconsole && _NEXTITEM=1
|
||||||
elif [[ -e /usr/bin/archboot-km.sh ]]; then
|
elif [[ -e /usr/bin/archboot-vconsole.sh ]]; then
|
||||||
archboot-km.sh && _NEXTITEM=1
|
archboot-vconsole.sh && _NEXTITEM=1
|
||||||
else
|
else
|
||||||
_dialog --msgbox "Error:\nkm script not found, aborting console and keyboard configuration." 0 0
|
_dialog --msgbox "Error:\nvconsole script not found, aborting vconsole configuration." 0 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -182,12 +182,12 @@ if [[ -e /usr/bin/setup ]]; then
|
||||||
_enter_shell
|
_enter_shell
|
||||||
# basic environment setup:
|
# basic environment setup:
|
||||||
# glibc locale, vconsole, network, clock
|
# glibc locale, vconsole, network, clock
|
||||||
if ! [[ -e /tmp/.locale ]]; then
|
if ! [[ -e /tmp/.localize ]]; then
|
||||||
archboot-locale.sh
|
localize
|
||||||
source /etc/locale.conf
|
source /etc/locale.conf
|
||||||
fi
|
fi
|
||||||
if ! [[ -e /tmp/.keymap ]]; then
|
if ! [[ -e /tmp/.keymap ]]; then
|
||||||
km && : >/tmp/.keymap
|
vconsole && : >/tmp/.vconsole
|
||||||
fi
|
fi
|
||||||
if [[ ! -e /tmp/.network && ! -e "${_CACHEDIR}/archboot.db" ]]; then
|
if [[ ! -e /tmp/.network && ! -e "${_CACHEDIR}/archboot.db" ]]; then
|
||||||
network && : >/tmp/.network
|
network && : >/tmp/.network
|
||||||
|
|
|
@ -34,7 +34,7 @@ usage () {
|
||||||
echo -e "\e[1m-----------------------------------------\e[m"
|
echo -e "\e[1m-----------------------------------------\e[m"
|
||||||
echo -e " \e[1m-help\e[m This message."
|
echo -e " \e[1m-help\e[m This message."
|
||||||
if [[ ! -e "/var/cache/pacman/pkg/archboot.db" || -e "/usr/bin/setup" ]]; then
|
if [[ ! -e "/var/cache/pacman/pkg/archboot.db" || -e "/usr/bin/setup" ]]; then
|
||||||
echo -e " \e[1m-update\e[m Update scripts: setup, quickinst, clock, km and helpers."
|
echo -e " \e[1m-update\e[m Update scripts: setup, quickinst, clock, vconsole and helpers."
|
||||||
fi
|
fi
|
||||||
# latest image
|
# latest image
|
||||||
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 2000000 && ! -e "/.full_system" && ! -e "/var/cache/pacman/pkg/archboot.db" ]]; then
|
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 2000000 && ! -e "/.full_system" && ! -e "/var/cache/pacman/pkg/archboot.db" ]]; then
|
||||||
|
@ -93,7 +93,7 @@ _download_latest() {
|
||||||
# Download latest setup and quickinst script from git repository
|
# Download latest setup and quickinst script from git repository
|
||||||
if [[ -n "${_D_SCRIPTS}" ]]; then
|
if [[ -n "${_D_SCRIPTS}" ]]; then
|
||||||
_network_check
|
_network_check
|
||||||
echo -e "\e[1mStart:\e[m Downloading latest km, clock, quickinst, setup and helpers..."
|
echo -e "\e[1mStart:\e[m Downloading latest vconsole, clock, quickinst, setup and helpers..."
|
||||||
[[ -d "${_INST}" ]] || mkdir "${_INST}"
|
[[ -d "${_INST}" ]] || mkdir "${_INST}"
|
||||||
# config
|
# config
|
||||||
echo -e "\e[1mStep 1/4:\e[m Downloading latest config..."
|
echo -e "\e[1mStep 1/4:\e[m Downloading latest config..."
|
||||||
|
@ -101,11 +101,11 @@ _download_latest() {
|
||||||
# helper binaries
|
# helper binaries
|
||||||
echo -e "\e[1mStep 2/4:\e[m Downloading latest scripts..."
|
echo -e "\e[1mStep 2/4:\e[m Downloading latest scripts..."
|
||||||
# main binaries
|
# main binaries
|
||||||
BINS="quickinst setup km clock launcher network update copy-mountpoint rsync-backup restore-usbstick"
|
BINS="quickinst setup vconsole clock launcher localize network update copy-mountpoint rsync-backup restore-usbstick"
|
||||||
for i in ${BINS}; do
|
for i in ${BINS}; do
|
||||||
[[ -e "${_BIN}/${i}" ]] && wget -q "${_SOURCE}${_BIN}/archboot-${i}.sh?inline=false" -O "${_BIN}/${i}"
|
[[ -e "${_BIN}/${i}" ]] && wget -q "${_SOURCE}${_BIN}/archboot-${i}.sh?inline=false" -O "${_BIN}/${i}"
|
||||||
done
|
done
|
||||||
BINS="binary-check.sh not-installed.sh secureboot-keys.sh mkkeys.sh hwsim.sh locale.sh cpio,sh"
|
BINS="binary-check.sh not-installed.sh secureboot-keys.sh mkkeys.sh hwsim.sh cpio,sh"
|
||||||
for i in ${BINS}; do
|
for i in ${BINS}; do
|
||||||
[[ -e "${_BIN}/${i}" ]] && wget -q "${_SOURCE}${_BIN}/archboot-${i}?inline=false" -O "${_BIN}/${i}"
|
[[ -e "${_BIN}/${i}" ]] && wget -q "${_SOURCE}${_BIN}/archboot-${i}?inline=false" -O "${_BIN}/${i}"
|
||||||
[[ -e "${_BIN}/archboot-${i}" ]] && wget -q "${_SOURCE}${_BIN}/archboot-${i}?inline=false" -O "${_BIN}/archboot-${i}"
|
[[ -e "${_BIN}/archboot-${i}" ]] && wget -q "${_SOURCE}${_BIN}/archboot-${i}?inline=false" -O "${_BIN}/archboot-${i}"
|
||||||
|
@ -618,7 +618,7 @@ EOF
|
||||||
|
|
||||||
_configure_plasma() {
|
_configure_plasma() {
|
||||||
echo "Configuring KDE..."
|
echo "Configuring KDE..."
|
||||||
sed -i -e "s#<default>applications:.*#<default>applications:systemsettings.desktop,applications:org.kde.konsole.desktop,preferred://filemanager,applications:${_STANDARD_BROWSER}.desktop,applications:gparted.desktop,applications:archboot.desktop</default>#g" /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml
|
sed -i -e "s#<default>applications:.*#<default>applications:systemsettings.desktop,applications:org.kde.konsole.desktop,preferred://filemanager,applications:${_STANDARD_BROWSER}.desktop,applications:gparted.desktop,applications:archboot.desktop</default>#g" /usr/share/plasma/plasmoids/org.kde.plasma.tasvconsoleanager/contents/config/main.xml
|
||||||
echo "Replacing wallpaper..."
|
echo "Replacing wallpaper..."
|
||||||
for i in /usr/share/wallpapers/Next/contents/images/*; do
|
for i in /usr/share/wallpapers/Next/contents/images/*; do
|
||||||
cp /usr/share/archboot/grub/archboot-background.png "${i}"
|
cp /usr/share/archboot/grub/archboot-background.png "${i}"
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
build ()
|
build ()
|
||||||
{
|
{
|
||||||
map add_binary genfstab arch-chroot pacstrap \
|
map add_binary genfstab arch-chroot pacstrap \
|
||||||
archboot-binary-check.sh archboot-not-installed.sh archboot-locale.sh hwdetect
|
archboot-binary-check.sh archboot-not-installed.sh hwdetect
|
||||||
add_file "/usr/bin/archboot-setup.sh" "/usr/bin/setup"
|
add_file "/usr/bin/archboot-setup.sh" "/usr/bin/setup"
|
||||||
add_file "/usr/bin/archboot-launcher.sh" "/usr/bin/launcher"
|
add_file "/usr/bin/archboot-launcher.sh" "/usr/bin/launcher"
|
||||||
add_file "/usr/bin/archboot-quickinst.sh" "/usr/bin/quickinst"
|
add_file "/usr/bin/archboot-quickinst.sh" "/usr/bin/quickinst"
|
||||||
|
add_file "/usr/bin/archboot-localize.sh" "/usr/bin/localize"
|
||||||
add_file "/usr/bin/archboot-copy-mountpoint.sh" "/usr/bin/copy-mountpoint.sh"
|
add_file "/usr/bin/archboot-copy-mountpoint.sh" "/usr/bin/copy-mountpoint.sh"
|
||||||
add_file "/usr/bin/archboot-rsync-backup.sh" "/usr/bin/rsync-backup.sh"
|
add_file "/usr/bin/archboot-rsync-backup.sh" "/usr/bin/rsync-backup.sh"
|
||||||
add_file "/usr/bin/archboot-restore-usbstick.sh" "/usr/bin/restore-usbstick.sh"
|
add_file "/usr/bin/archboot-restore-usbstick.sh" "/usr/bin/restore-usbstick.sh"
|
||||||
|
|
|
@ -11,10 +11,10 @@ build ()
|
||||||
[[ "$(uname -m)" == "riscv64" ]] && echo -e "\e[1mWelcome to \e[36mArchboot\e[m\e[1m - Arch Linux RISCV64\e[m" >> "${MOTD}"
|
[[ "$(uname -m)" == "riscv64" ]] && echo -e "\e[1mWelcome to \e[36mArchboot\e[m\e[1m - Arch Linux RISCV64\e[m" >> "${MOTD}"
|
||||||
#shellcheck disable=SC2129
|
#shellcheck disable=SC2129
|
||||||
echo -e "\e[1m----------------------------------------\e[m" >> "${MOTD}"
|
echo -e "\e[1m----------------------------------------\e[m" >> "${MOTD}"
|
||||||
echo -e "\e[1mConsole Configuration:\e[m" >> "${MOTD}"
|
echo -e "\e[1mVconsole Configuration:\e[m" >> "${MOTD}"
|
||||||
echo -e " - Use the \e[1;92mALT + F1 - F6\e[m keys to change the virtual console." >> "${MOTD}"
|
echo -e " - Use the \e[1;92mALT + F1 - F6\e[m keys to change the virtual console." >> "${MOTD}"
|
||||||
if echo "${HOOKS[@]}" | grep -qw archboot_keymap ; then
|
if echo "${HOOKS[@]}" | grep -qw archboot_keymap ; then
|
||||||
echo -e " - Use the \e[1;92m'km'\e[m script to change to a non-US keymap." >> "${MOTD}"
|
echo -e " - Use the \e[1;92m'vconsole'\e[m script to change to a non-US keymap." >> "${MOTD}"
|
||||||
fi
|
fi
|
||||||
if echo "${HOOKS[@]}" | grep -qw archboot_net_common ; then
|
if echo "${HOOKS[@]}" | grep -qw archboot_net_common ; then
|
||||||
echo -e "\e[1mNetwork Configuration:\e[m" >> "${MOTD}"
|
echo -e "\e[1mNetwork Configuration:\e[m" >> "${MOTD}"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
build ()
|
build ()
|
||||||
{
|
{
|
||||||
add_full_dir "/usr/share/kbd"
|
add_full_dir "/usr/share/kbd"
|
||||||
add_file /usr/bin/archboot-km.sh /usr/bin/km
|
add_file /usr/bin/archboot-vconsole.sh /usr/bin/vconsole
|
||||||
#add kbd binaries
|
#add kbd binaries
|
||||||
map add_binary dumpkeys kbd_mode chvt deallocvt fgconsole getkeycodes kbdinfo kbdrate loadunimap mapscrn openvt psfaddtable psfgettable psfstriptable psfxtable setkeycodes setleds setmetamode setvtrgb showconsolefont showkey unicode_start unicode_stop vlock
|
map add_binary dumpkeys kbd_mode chvt deallocvt fgconsole getkeycodes kbdinfo kbdrate loadunimap mapscrn openvt psfaddtable psfgettable psfstriptable psfxtable setkeycodes setleds setmetamode setvtrgb showconsolefont showkey unicode_start unicode_stop vlock
|
||||||
# only add resizecons on x86_64
|
# only add resizecons on x86_64
|
Loading…
Reference in a new issue