You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.9 KiB

3 years ago
#!/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=p10'>>$destdir/etc/os-release
3 years ago
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:p10"'>>$destdir/etc/os-release
echo 'LOGO=kometa'>>$destdir/etc/os-release
3 years ago
#Настройки фонов
3 years ago
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 && apt-get -y dist-upgrade && update-kernel -f && apt-get clean">>$destdir/root/upd.sh
chmod u+x $destdir/root/upd.sh