diff options
author | root <root@dasajuma.(none)> | 2010-09-02 10:26:04 +0200 |
---|---|---|
committer | root <root@dasajuma.(none)> | 2010-09-02 10:26:04 +0200 |
commit | 8e0d211bf674953f2830830e27cb80a8b720ef17 (patch) | |
tree | a7814d6dd37b84476628e51d9fcb5f3ea98bba8e /config/chroot_local-hooks/03-distro | |
download | kanotix-8e0d211bf674953f2830830e27cb80a8b720ef17.zip kanotix-8e0d211bf674953f2830830e27cb80a8b720ef17.tar.gz |
Initial commit
Diffstat (limited to 'config/chroot_local-hooks/03-distro')
-rwxr-xr-x | config/chroot_local-hooks/03-distro | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/03-distro b/config/chroot_local-hooks/03-distro new file mode 100755 index 0000000..ef7ff98 --- /dev/null +++ b/config/chroot_local-hooks/03-distro @@ -0,0 +1,17 @@ +#!/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 +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 |