master
Artem Proskurnev 3 years ago
parent 14974c5464
commit 5391c3991a
  1. 62
      installer-feature-kometa-school-kde5-1.0/93-kometa-school-kde5.sh
  2. 39
      installer-feature-kometa-school-kde5.spec

@ -0,0 +1,62 @@
#!/bin/sh
a= . install2-init-functions
#echo 'KOMETA 830.1 School (sch830)' > $destdir/etc/altlinux-release
sed -i 's/ALT Linux/KOMETA/' $destdir/etc/rc.d/rc.sysinit
echo 'NAME="KOMETA"'>$destdir/etc/os-release
echo 'VERSION="School 830"'>>$destdir/etc/os-release
echo 'ID=kometa'>>$destdir/etc/os-release
echo 'VERSION_ID=p9'>>$destdir/etc/os-release
echo 'PRETTY_NAME="KOMETA School 830"'>>$destdir/etc/os-release
echo 'ANSI_COLOR="1;33"'>>$destdir/etc/os-release
echo 'CPE_NAME="cpe:/o:alt:kometa:p9"'>>$destdir/etc/os-release
#Вынесено в skel
#Добавление тёмной картинки в sddm
#sed -i 's/default.png/bgschooldark.png/g' $destdir/usr/share/sddm/themes/breeze/theme.conf
#Добавление тёмной картинки в lockscreen и загрузки-выходы
#echo "[Greeter][Wallpaper][org.kde.image][General]">$destdir/etc/skel/.config/kscreenlockerrc
#echo "Image=/usr/share/design/current/backgrounds/bgschooldark.png">>$destdir/etc/skel/.config/kscreenlockerrc
#sed -i 's/default.png/bgschooldark.png/g' $destdir/usr/share/kf5/plasma/look-and-feel/org.kde.breeze.desktop/contents/userswitcher/UserSwitcher.qml
#sed -i 's/default.png/bgschooldark.png/g' $destdir/usr/share/kf5/plasma/look-and-feel/org.kde.breeze.desktop/contents/splash/Splash.qml
#sed -i 's/default.png/bgschooldark.png/g' $destdir/usr/share/kf5/plasma/look-and-feel/org.kde.breeze.desktop/contents/logout/Logout.qml
#Настройки панели, иконок стола и фонов
#mv $destdir/usr/share/design/school/backgrounds/p.tar $destdir/etc/skel/.local/share/
#cd $destdir/etc/skel/.local/share/
#tar -xf $destdir/etc/skel/.local/share/p.tar -C $destdir/etc/skel/.local/share/
#rm -f $destdir/etc/skel/.local/share/p.tar
cp $destdir/usr/share/design/school/backgrounds/bglight.png $destdir/etc/skel/
cp $destdir/usr/share/design/school/backgrounds/default.png $destdir/etc/skel/
#Настройка дефолтных реп
#echo "">>$destdir/etc/apt/sources.list
#raz=`cat $destdir/etc/apt/sources.list.d/yandex.list|grep x86_64`
#if [ "$raz" != "" ];
#then
#echo "rpm http://school830.ru/myrepo/ x86_64 hasher">>$destdir/etc/apt/sources.list
#else
#echo "rpm http://school830.ru/myrepo/ i586 hasher">>$destdir/etc/apt/sources.list
#fi
sed -i '/http/s/#//g' $destdir/etc/apt/sources.list.d/yandex.list
#Настройка системы
#echo "#!/bin/sh">$destdir/etc/firsttime.d/mysetup.sh
#echo "systemctl enable cups.service">>$destdir/etc/firsttime.d/mysetup.sh
#echo "systemctl enable sshd.service">>$destdir/etc/firsttime.d/mysetup.sh
#echo "systemctl enable bluetooth.service">>$destdir/etc/firsttime.d/mysetup.sh
#chmod +x $destdir/etc/firsttime.d/mysetup.sh
# Назначено при сборке
#Отключение tmpfs по дефолту
sed -i '/tmpfs/s/tmpfs/#tmpfs/' $destdir/etc/fstab
echo "/home/tmp /tmp auto bind,rw,nosuid 0 0">>$destdir/etc/fstab
#Скрипт update
echo "#!/bin/sh">$destdir/root/upd.sh
echo "apt-get update">>$destdir/root/upd.sh
echo "apt-get -y dist-upgrade">>$destdir/root/upd.sh
echo "update-kernel -f">>$destdir/root/upd.sh
echo "apt-get clean">>$destdir/root/upd.sh

@ -0,0 +1,39 @@
Name: installer-feature-kometa-school-kde5
Version: 1.0
Release: kometa5
Summary: feature to kometa school distro
License: GPL
Group: System/Configuration/Other
Url: http://oskometa.ru
BuildArch: noarch
Source: %name-%version.tar
%description
feature to kometa school distro
%prep
%setup
%install
%define hookdir %_datadir/install2/preinstall.d
mkdir -p %buildroot%hookdir
install -pm755 93-kometa-school-kde5.sh %buildroot%hookdir/
%files
%hookdir/*
%changelog
* Thu Dec 02 2021 1.0-kometa5
- Исправление фонов
* Thu Mar 22 2018 1.0-kometa4
- Исправление фонов
* Wed Jan 10 2018 1.0-kometa3
- Тёмные картинки фона в экран блокировки и загрузки/выхода
* Sun Apr 2 2017 1.0-kometa1
- initial build kde5
Loading…
Cancel
Save