summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/03-distro
blob: 6fb711821c13b9ab60534a638da3559eeb15a294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
sed -i 's/^\(FLL_DISTRO_MODE=\).*/\1"live"/' /etc/default/distro||true

rsync -Ha --ignore-existing /usr/share/kanotix/profile/ /etc/skel/
#sed -i 's|^\(exclude=media/cdrom_unmounted\).*|\1,media/hdd_unmounted|' /etc/skel/.kde/share/config/kdesktoprc||true
#rm -f /etc/skel/.kde4/share/config/kxkbrc
#rm -f /etc/skel/.kde/share/config/kdeglobals.tmp
#mv /etc/skel/.kde/share/config/kdeglobals /etc/skel/.kde/share/config/kdeglobals.tmp
#sed -ne '/\[Locale\]/ { n; :c; /^\[/! { n; b c; }; }; p;' /etc/skel/.kde/share/config/kdeglobals.tmp > /etc/skel/.kde/share/config/kdeglobals
#rm -f /etc/skel/.kde/share/config/kdeglobals.tmp

perl -pi -e 's/^(GRUB_DISTRIBUTOR)=.*/\1=`[ "\$\(uname -m\)" = "x86_64" ] && echo Kanotix64 || echo Kanotix`/' /etc/default/grub
perl -pi -e 's/.*(GRUB_DISABLE_LINUX_RECOVERY)=.*/\1="true"/' /etc/default/grub
perl -pi -e 's/.*(GRUB_DISABLE_RECOVERY)=.*/\1="true"/' /etc/default/grub
perl -pi -e 's/^(GRUB_CMDLINE_LINUX_DEFAULT)=.*/\1="quiet splash"/' /etc/default/grub

rm -f /etc/skel/Desktop/kanotix-irc.desktop.tmp
if [ -f /etc/skel/Desktop/kanotix-irc.desktop ]; then
 echo '#!/usr/bin/env xdg-open' > /etc/skel/Desktop/kanotix-irc.desktop.tmp
 grep -v xdg-open /etc/skel/Desktop/kanotix-irc.desktop >> /etc/skel/Desktop/kanotix-irc.desktop.tmp
 rm -f /etc/skel/Desktop/kanotix-irc.desktop
 mv /etc/skel/Desktop/kanotix-irc.desktop.tmp /etc/skel/Desktop/kanotix-irc.desktop
 chmod +x /etc/skel/Desktop/kanotix-irc.desktop
fi