summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2010-12-07 00:15:39 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2010-12-07 00:15:39 +0100
commitc1523d94310e8a58694b491517adc840a81f3d5e (patch)
tree8e1e3369c1bf396cd8ee1394fe10684dba6e420f /config/chroot_local-hooks
parent6761954295e6e27a9f8665b7b7157e77fc636a5b (diff)
downloadkanotix-c1523d94310e8a58694b491517adc840a81f3d5e.zip
kanotix-c1523d94310e8a58694b491517adc840a81f3d5e.tar.gz
updated hooks for branding
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-xconfig/chroot_local-hooks/04-cleanup2
-rwxr-xr-xconfig/chroot_local-hooks/fix-kanotix-graphics.sh63
-rwxr-xr-xconfig/chroot_local-hooks/plymouth2
3 files changed, 1 insertions, 66 deletions
diff --git a/config/chroot_local-hooks/04-cleanup b/config/chroot_local-hooks/04-cleanup
index 4f1f822..cb407a3 100755
--- a/config/chroot_local-hooks/04-cleanup
+++ b/config/chroot_local-hooks/04-cleanup
@@ -26,8 +26,6 @@ update-pciids || true
rm -f /usr/share/misc/pci.ids.*
update-usbids || true
rm -f /var/lib/usbutils/usb.ids.*
-# Force old autologin
-rm -rf /etc/default/kdm.d
# Some application defaults
update-alternatives --set pager /usr/bin/most || true
update-alternatives --set x-window-manager /usr/bin/openbox || true
diff --git a/config/chroot_local-hooks/fix-kanotix-graphics.sh b/config/chroot_local-hooks/fix-kanotix-graphics.sh
deleted file mode 100755
index b9e8eb7..0000000
--- a/config/chroot_local-hooks/fix-kanotix-graphics.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-if test $(id -u) != 0; then
- echo Error: You must be root to run this script!
- exit 1
-fi
-# reinstall grub
-if [ -w /boot/grub/menu.lst ] && false; then
- OLDGRUB=$(awk -F= '/^# groot/{print $2}' /boot/grub/menu.lst)
- if [ -n "$OLDGRUB" ]; then
- grub-install --recheck --no-floppy "$OLDGRUB" &>/dev/null
- grub-install --recheck --no-floppy "$OLDGRUB"
- fi
- # add quiet option if not there
- KOPT=$(awk '/# kopt/' /boot/grub/menu.lst)
- if [ -n "$KOPT" ]; then
- case $KOPT in
- *quiet*) ;;
- *)
- perl -pi -e "s|^$KOPT|$KOPT quiet|" /boot/grub/menu.lst
- update-grub
- ;;
- esac
- fi
-fi
-# use new message file
-if [ -f /boot/message.hd ]; then
- rm -f /boot/message
- ln -s message.hd /boot/message
-fi
-# activate splashy
-FROZEN=
-[ -f /etc/frozen-rc.d ] && FROZEN=1
-[ -r /etc/default/distro ] && . /etc/default/distro
-if [ -x /etc/init.d/splashy-init -a "$FLL_DISTRO_MODE" != "live" ]; then
- [ -x /usr/sbin/unfreeze-rc.d ] && /usr/sbin/unfreeze-rc.d
- update-rc.d -f splashy-init remove
- update-rc.d splashy-init start 03 S . stop 01 0 6 .
- [ -n "$FROZEN" -a -x /usr/sbin/freeze-rc.d ] && /usr/sbin/freeze-rc.d
-fi
-# config splashy
-# fix ksplash
-if [ -d /usr/share/apps/ksplash/Themes/KanotixClouds ]; then
- for x in /root/.kde/share/config/ksplashrc /home/*/.kde/share/config/ksplashrc; do
- [ -w "$x" ] && perl -pi -e 's/Theme=.*/Theme=KanotixClouds/' "$x"
- done
-fi
-[ -d /etc/splashy/themes/KanotixPenguins ] && splashy_config -s KanotixPenguins
-[ -d /etc/splashy/themes/Kanotix64Penguins ] && splashy_config -s Kanotix64Penguins
-# fix kdm
-rm -f /etc/kde3/kdm/Xservers
-perl -pi -e 's/^(MinShowUID)=.*/\1=500/' /etc/kde3/kdm/kdmrc
-if [ -d /usr/share/apps/kdm/themes/KanotixPenguins ]; then
- perl -pi -e 's/^#*(UseTheme)=.*/\1=true/' /etc/kde3/kdm/kdmrc
- perl -pi -e 's|^(Theme)=.*|\1=/usr/share/apps/kdm/themes/KanotixPenguins|' /etc/kde3/kdm/kdmrc
-fi
-if [ -d /usr/share/apps/kdm/themes/Kanotix64Penguins ]; then
- perl -pi -e 's/^#*(UseTheme)=.*/\1=true/' /etc/kde3/kdm/kdmrc
- perl -pi -e 's|^(Theme)=.*|\1=/usr/share/apps/kdm/themes/Kanotix64Penguins|' /etc/kde3/kdm/kdmrc
-fi
-# kdm background
-[ -r /usr/share/wallpapers/kanotix.png ] && perl -pi -e 's|^(Wallpaper)=.*|\1=/usr/share/wallpapers/kanotix.png|' /etc/kde3/kdm/backgroundrc
-# fix udev
-rm -f /etc/udev/rules.d/40-prism2.rule
diff --git a/config/chroot_local-hooks/plymouth b/config/chroot_local-hooks/plymouth
index 13fbedb..f2ef82d 100755
--- a/config/chroot_local-hooks/plymouth
+++ b/config/chroot_local-hooks/plymouth
@@ -1,3 +1,3 @@
#!/bin/sh
-plymouth-set-default-theme -R solar
+plymouth-set-default-theme -R kanotix-logo