diff --git a/uncom-hotfix-grp-led-off/debian/changelog b/uncom-hotfix-grp-led-off/debian/changelog new file mode 100644 index 0000000000000000000000000000000000000000..f999893ca2267b4e3e41d5c35d7ce443aa6fdf5b --- /dev/null +++ b/uncom-hotfix-grp-led-off/debian/changelog @@ -0,0 +1,5 @@ +uncom-hotfix-grp-led-off (0.1-1) andromeda; urgency=medium + + * Uncom fix for grp-led-off + + -- Evgeny Gorbachev <e.gorbachev@uncom.tech> Thu, 26 Dec 2024 11:51:49 +0300 diff --git a/uncom-hotfix-grp-led-off/debian/control b/uncom-hotfix-grp-led-off/debian/control new file mode 100644 index 0000000000000000000000000000000000000000..cfd4bef22b7a69c9daafb68aa8f9b20461e7c81a --- /dev/null +++ b/uncom-hotfix-grp-led-off/debian/control @@ -0,0 +1,8 @@ +Source: uncom-hotfix-grp-led-off +Section: admin +Build-Depends: debhelper-compat (= 12) +Maintainer: E. Gorbachev <e.gorbachev@uncom.tech> + +Package: uncom-hotfix-grp-led-off +Architecture: all +Description: uncom hotfix system tuning diff --git a/uncom-hotfix-grp-led-off/debian/copyright b/uncom-hotfix-grp-led-off/debian/copyright new file mode 100644 index 0000000000000000000000000000000000000000..f63afe75ea21a91d0933629f67f299124931e0fe --- /dev/null +++ b/uncom-hotfix-grp-led-off/debian/copyright @@ -0,0 +1,22 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: uncom-hotfix-grp-led-off +Upstream-Contact: Evgeny Gorbachev <e.gorbachev@uncom.tech> + +Files: * +Copyright: 2022 Evgeny Gorbachev <e.gorbachev@uncom.tech> +License: GPL-2+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + . + On Debian GNU/Linux systems, the complete text of the GNU General Public + License version 2 can be found in '/usr/share/common-licenses/GPL-2'. diff --git a/uncom-hotfix-grp-led-off/debian/postinst b/uncom-hotfix-grp-led-off/debian/postinst new file mode 100755 index 0000000000000000000000000000000000000000..dfd170f6acec6477f79e15d9829786c60aeb2ba8 --- /dev/null +++ b/uncom-hotfix-grp-led-off/debian/postinst @@ -0,0 +1,3 @@ +#!/bin/bash + +/sbin/uncom_hotfix_grp-led-off.sh diff --git a/uncom-hotfix-grp-led-off/debian/postrm b/uncom-hotfix-grp-led-off/debian/postrm new file mode 100755 index 0000000000000000000000000000000000000000..536499b6ac605f5369cb086d99caaa4448c0a412 --- /dev/null +++ b/uncom-hotfix-grp-led-off/debian/postrm @@ -0,0 +1,15 @@ +#!/bin/bash + +#!/bin/bash + +RED='\033[0;31m' +GREEN='\033[0;32m' +NC='\033[0m' # No Color + +if [[ -f /etc/default/keyboard.bak ]] +then echo -e "${GREEN}Restoring /etc/default/keyboard.bak${NC}" + mv -f /etc/default/keyboard.bak /etc/default/keyboard +else + echo -e "${RED}No such file: /etc/default/keyboard.bak. Please contact support on: htpp://t.me/uncomos${NC}" +fi + diff --git a/uncom-hotfix-grp-led-off/debian/rules b/uncom-hotfix-grp-led-off/debian/rules new file mode 100755 index 0000000000000000000000000000000000000000..659a7c3fcd941164aef78b405d5a4d57cc8e83ca --- /dev/null +++ b/uncom-hotfix-grp-led-off/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +%: + dh ${@} + diff --git a/uncom-hotfix-grp-led-off/debian/source/format b/uncom-hotfix-grp-led-off/debian/source/format new file mode 100644 index 0000000000000000000000000000000000000000..89ae9db8f88b823b6a7eabf55e203658739da122 --- /dev/null +++ b/uncom-hotfix-grp-led-off/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/uncom-hotfix-grp-led-off/debian/uncom-hotfix-grp-led-off.install b/uncom-hotfix-grp-led-off/debian/uncom-hotfix-grp-led-off.install new file mode 100644 index 0000000000000000000000000000000000000000..e1ae85e07a72e654438f8fed74ca3946cb6a1809 --- /dev/null +++ b/uncom-hotfix-grp-led-off/debian/uncom-hotfix-grp-led-off.install @@ -0,0 +1 @@ +sbin diff --git a/uncom-hotfix-grp-led-off/sbin/uncom_hotfix_grp-led-off.sh b/uncom-hotfix-grp-led-off/sbin/uncom_hotfix_grp-led-off.sh new file mode 100755 index 0000000000000000000000000000000000000000..4aa28b5d26247eded8818bb9ffe836c57a5dc768 --- /dev/null +++ b/uncom-hotfix-grp-led-off/sbin/uncom_hotfix_grp-led-off.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[0;93m' +MAGENTA='\033[0;35m' +NC='\033[0m' # No Color + +echo -e "${GREEN}Starting the script...${NC}" + +echo -e "${GREEN}Backing up: ${MAGENTA}/etc/default/keyboard${NC}" +cp -f /etc/default/keyboard /etc/default/keyboard.bak + +sed -i "s/grp_led:scroll//" /etc/default/keyboard + +echo -e "${GREEN}Script work finished${NC}" \ No newline at end of file