From 9196e1bc22d14e5cfa3d2842508096c7377e28cb Mon Sep 17 00:00:00 2001 From: christianhaitian Date: Sat, 13 Feb 2021 12:00:01 -0500 Subject: [PATCH] Update --- Update-RGB10.sh | 15 +++++++++++++-- Update-RK2020.sh | 15 +++++++++++++-- changelogs/rgb10-changelog | 5 ++++- changelogs/rk2020-changelog | 5 ++++- 4 files changed, 34 insertions(+), 6 deletions(-) diff --git a/Update-RGB10.sh b/Update-RGB10.sh index b149d41c5..971b0aac6 100644 --- a/Update-RGB10.sh +++ b/Update-RGB10.sh @@ -1,7 +1,7 @@ #!/bin/bash clear -UPDATE_DATE="02132021-1" +UPDATE_DATE="02132021-2" LOG_FILE="/home/ark/update$UPDATE_DATE.log" UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE" @@ -583,7 +583,7 @@ if [ ! -f "/home/ark/.config/.update02132021" ]; then touch "/home/ark/.config/.update02132021" fi -if [ ! -f "$UPDATE_DONE" ]; then +if [ ! -f "/home/ark/.config/.update02132021-1" ]; then printf "\nAdd USB drive mount and unmount to options menu\n" | tee -a "$LOG_FILE" sudo wget https://github.com/christianhaitian/arkos/raw/main/02132021-1/USB%20Drive%20Mount.sh -O "/opt/system/USB Drive Mount.sh" -a "$LOG_FILE" || rm -f "/opt/system/USB Drive Mount.sh" | tee -a "$LOG_FILE" @@ -603,6 +603,17 @@ if [ ! -f "$UPDATE_DONE" ]; then printf "\nUpdate boot text to reflect current version of ArkOS\n" | tee -a "$LOG_FILE" sudo sed -i "/title\=/c\title\=ArkOS 1.5 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth + touch "/home/ark/.config/.update02132021-1" +fi + +if [ ! -f "$UPDATE_DONE" ]; then + + printf "\nFix global hotkeys not working after 02132021 update\n" | tee -a "$LOG_FILE" + sudo sed -i '/print(device.name, event)/c\' /usr/local/bin/oga_events.py + + printf "\nUpdate boot text to reflect current version of ArkOS\n" | tee -a "$LOG_FILE" + sudo sed -i "/title\=/c\title\=ArkOS 1.5 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth + touch "$UPDATE_DONE" rm -v -- "$0" | tee -a "$LOG_FILE" printf "\033c" >> /dev/tty1 diff --git a/Update-RK2020.sh b/Update-RK2020.sh index a79449023..4578dfa39 100644 --- a/Update-RK2020.sh +++ b/Update-RK2020.sh @@ -1,7 +1,7 @@ #!/bin/bash clear -UPDATE_DATE="02132021-1" +UPDATE_DATE="02132021-2" LOG_FILE="/home/ark/update$UPDATE_DATE.log" UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE" @@ -583,7 +583,7 @@ if [ ! -f "/home/ark/.config/.update02132021" ]; then touch "/home/ark/.config/.update02132021" fi -if [ ! -f "$UPDATE_DONE" ]; then +if [ ! -f "/home/ark/.config/.update02132021-1" ]; then printf "\nAdd USB drive mount and unmount to options menu\n" | tee -a "$LOG_FILE" sudo wget https://github.com/christianhaitian/arkos/raw/main/02132021-1/USB%20Drive%20Mount.sh -O "/opt/system/USB Drive Mount.sh" -a "$LOG_FILE" || rm -f "/opt/system/USB Drive Mount.sh" | tee -a "$LOG_FILE" @@ -603,6 +603,17 @@ if [ ! -f "$UPDATE_DONE" ]; then printf "\nUpdate boot text to reflect current version of ArkOS\n" | tee -a "$LOG_FILE" sudo sed -i "/title\=/c\title\=ArkOS 1.5 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth + touch "/home/ark/.config/.update02132021-1" +fi + +if [ ! -f "$UPDATE_DONE" ]; then + + printf "\nFix global hotkeys not working after 02132021 update\n" | tee -a "$LOG_FILE" + sudo sed -i '/print(device.name, event)/c\' /usr/local/bin/oga_events.py + + printf "\nUpdate boot text to reflect current version of ArkOS\n" | tee -a "$LOG_FILE" + sudo sed -i "/title\=/c\title\=ArkOS 1.5 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth + touch "$UPDATE_DONE" rm -v -- "$0" | tee -a "$LOG_FILE" printf "\033c" >> /dev/tty1 diff --git a/changelogs/rgb10-changelog b/changelogs/rgb10-changelog index 4b3dd1c3c..7effdcf04 100644 --- a/changelogs/rgb10-changelog +++ b/changelogs/rgb10-changelog @@ -121,4 +121,7 @@ v1.5 (02/13/2021) v1.5 (02/13/2021-1) - Added ability to mount and unmount a USB drive from the options menu - * See FAQ #20 for information on how to use this (https://github.com/christianhaitian/arkos/wiki/Frequently-Asked-Questions---RGB10#q-how-do-i-mount-a-usb-drive-for-copying-and-moving-files). \ No newline at end of file + * See FAQ #20 for information on how to use this (https://github.com/christianhaitian/arkos/wiki/Frequently-Asked-Questions---RGB10#q-how-do-i-mount-a-usb-drive-for-copying-and-moving-files). + +v1.5 (02/13/2021-2) +- Fixed global hotkeys not working after 02132021 update \ No newline at end of file diff --git a/changelogs/rk2020-changelog b/changelogs/rk2020-changelog index 848b1dcdb..0a7617a71 100644 --- a/changelogs/rk2020-changelog +++ b/changelogs/rk2020-changelog @@ -121,4 +121,7 @@ v1.5 (02/13/2021) v1.5 (02/13/2021-1) - Added ability to mount and unmount a USB drive from the options menu - * See FAQ #20 for information on how to use this (https://github.com/christianhaitian/arkos/wiki/Frequently-Asked-Questions---RK2020#q-how-do-i-mount-a-usb-drive-for-copying-and-moving-files). \ No newline at end of file + * See FAQ #20 for information on how to use this (https://github.com/christianhaitian/arkos/wiki/Frequently-Asked-Questions---RK2020#q-how-do-i-mount-a-usb-drive-for-copying-and-moving-files). + +v1.5 (02/13/2021-2) +- Fixed global hotkeys not working after 02132021 update \ No newline at end of file