Add Clear Linux support

This commit is contained in:
Muhammad Rivan 2021-06-08 17:19:57 +07:00
parent 34f55e206a
commit 63656bf788
No known key found for this signature in database
GPG Key ID: C56A200FD936FAAA

View File

@ -24,14 +24,15 @@ prepare_swupd() {
local repo="[clearlinux]\nname=Clear Linux\nbaseurl=https://download.clearlinux.org/current/x86_64/os/\ngpgcheck=0" local repo="[clearlinux]\nname=Clear Linux\nbaseurl=https://download.clearlinux.org/current/x86_64/os/\ngpgcheck=0"
rootify swupd update && rootify swupd bundle-add -y dnf rootify swupd update && backup_file "/etc/os-release" "rootify"
rootify swupd bundle-add -y dnf
if [[ ! -d "/etc/yum.repos.d" ]]; then if [[ ! -d "/etc/yum.repos.d" ]]; then
rootify mkdir -p "/etc/yum.repos.d" rootify mkdir -p "/etc/yum.repos.d"
write_as_root "${repo}" "/etc/yum.repos.d/clearlinux.repo" write_as_root "${repo}" "/etc/yum.repos.d/clearlinux.repo"
fi fi
backup_file "/etc/os-release" "rootify"; rootify dnf upgrade rootify dnf upgrade
} }
finalize_swupd() { finalize_swupd() {
@ -176,7 +177,9 @@ install_beggy() {
;; ;;
*) *)
if [[ "${no_blur}" == "false" || "${darken}" == "true" ]]; then if [[ "${no_blur}" == "false" || "${darken}" == "true" ]]; then
install_beggy_deps && convert "${background}" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png" install_beggy_deps; start_animation
convert "${background}" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png"
stop_animation
else else
cp -r "${background}" "${WHITESUR_TMP_DIR}/beggy.png" cp -r "${background}" "${WHITESUR_TMP_DIR}/beggy.png"
fi fi
@ -420,7 +423,6 @@ remove_themes() {
} }
install_gdm_theme() { install_gdm_theme() {
start_animation
local TARGET= local TARGET=
# Let's go! # Let's go!
@ -461,8 +463,6 @@ install_gdm_theme() {
# Fix previously installed WhiteSur # Fix previously installed WhiteSur
restore_file "${ETC_GR_FILE}" restore_file "${ETC_GR_FILE}"
fi fi
stop_animation
} }
revert_gdm_theme() { revert_gdm_theme() {