From 263d418594a6d034320a46c94c507054c27f570d Mon Sep 17 00:00:00 2001 From: Artem Proskurnev Date: Tue, 14 Dec 2021 08:12:03 +0300 Subject: [PATCH] All files --- .../92-kometa-kde5.sh | 24 ++++++++ .../mntchroot.sh | 6 ++ installer-feature-kometa-kde5.spec | 57 +++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100755 installer-feature-kometa-kde5-1.2/92-kometa-kde5.sh create mode 100755 installer-feature-kometa-kde5-1.2/mntchroot.sh create mode 100755 installer-feature-kometa-kde5.spec diff --git a/installer-feature-kometa-kde5-1.2/92-kometa-kde5.sh b/installer-feature-kometa-kde5-1.2/92-kometa-kde5.sh new file mode 100755 index 0000000..bb9737d --- /dev/null +++ b/installer-feature-kometa-kde5-1.2/92-kometa-kde5.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# полный путь до скрипта +ABSOLUTE_FILENAME=`readlink -e "$0"` +# каталог в котором лежит скрипт +SDIRECTORY=`dirname "$ABSOLUTE_FILENAME"` + +a= . install2-init-functions +sed -i 's/#GreetString=K Desktop Environment (%n)/GreetString=Добро пожаловать на борт!/g' $destdir/etc/X11/kdm4/kdmrc +mkdir -p $destdir/etc/skel/.local/share/dolphin/view_properties/global +echo "[Dolphin]">$destdir/etc/skel/.local/share/dolphin/view_properties/global/.directory +echo "PreviewsShown=true">>$destdir/etc/skel/.local/share/dolphin/view_properties/global/.directory + +#Назначение редактором vim +mkdir -p $destdir/etc/bashrc.d +echo "#!/bin/sh">$destdir/etc/bashrc.d/editor.sh +echo "export EDITOR=vim">>$destdir/etc/bashrc.d/editor.sh +echo "export GIT_EDITOR=vim">>$destdir/etc/bashrc.d/editor.sh +echo "alias vi='/usr/bin/vim-console'">>$destdir/etc/bashrc.d/editor.sh +chmod +x $destdir/etc/bashrc.d/editor.sh + +#Привет от NM +echo "#!/bin/sh">$destdir/etc/firsttime.d/nm.sh +echo "echo -e \"\n[device]\nwifi.scan-rand-mac-address=no\" >> /etc/NetworkManager/NetworkManager.conf">>$destdir/etc/firsttime.d/nm.sh +chmod +x $destdir/etc/firsttime.d/nm.sh diff --git a/installer-feature-kometa-kde5-1.2/mntchroot.sh b/installer-feature-kometa-kde5-1.2/mntchroot.sh new file mode 100755 index 0000000..af3d317 --- /dev/null +++ b/installer-feature-kometa-kde5-1.2/mntchroot.sh @@ -0,0 +1,6 @@ +#!/bin/sh +mount $1 /mnt +mount --bind /proc /mnt/proc +mount --bind /sys /mnt/sys +mount --bind /dev /mnt/dev +chroot /mnt diff --git a/installer-feature-kometa-kde5.spec b/installer-feature-kometa-kde5.spec new file mode 100755 index 0000000..51ead2c --- /dev/null +++ b/installer-feature-kometa-kde5.spec @@ -0,0 +1,57 @@ +Name: installer-feature-kometa-kde5 +Version: 1.2 +Release: kometa1 + +Summary: feature to kometa distro +License: GPL +Group: System/Configuration/Other +Url: http://oskometa.ru +BuildArch: noarch +Source: %name-%version.tar + +%description +feature to kometa distro + +%prep +%setup + +%install +%define hookdir %_datadir/install2/preinstall.d +%define rootdir /root +mkdir -p %buildroot%hookdir +mkdir -p %buildroot%rootdir +install -pm755 92-kometa-kde5.sh %buildroot%hookdir/ +install -pm755 mntchroot.sh %buildroot%rootdir/ + + +%files +%hookdir/92-kometa-kde5.sh +%rootdir/mntchroot.sh + +%changelog +* Thu Oct 21 2021 1.2-kometa1 +- (Dolphin, single click, ru/us == РУС/АНГ, Num Lock) => kometa-std-desktop + +* Sat Oct 17 2020 1.1-kometa9 +- Скрипт для root монтирования системы в mnt для восстановления grub + +* Sun Mar 15 2020 1.0-kometa7 +- Адаптация под p9 + +* Thu Mar 22 2018 1.0-kometa6 +- Исправление фонов + +* Wed Jan 10 2018 1.0-kometa5 +- Настройка нижней панели + +* Fri Jan 5 2018 1.0-kometa4 +- Отключение эффектов + +* Thu Apr 5 2017 1.0-kometa3 +- NM + +* Sun Apr 2 2017 1.0-kometa2 +- vi -> vim и эффекты + +* Mon Jan 30 2011 1.0-kometa1 +- initial build