Initial configuration for FAI (work in progress)
[grml-live.git] / etc / grml / fai / config / scripts / GRML_X / 90-update-alternatives
diff --git a/etc/grml/fai/config/scripts/GRML_X/90-update-alternatives b/etc/grml/fai/config/scripts/GRML_X/90-update-alternatives
new file mode 100755 (executable)
index 0000000..6a5fd56
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -u
+set -e
+
+if [ -r "$target"/usr/bin/xterm ] ; then
+   chroot "$target" update-alternatives --set x-terminal-emulator /usr/bin/xterm
+fi
+
+if [ -r "$target"/etc/X11/cursors/whiteglass.theme ] ; then
+   chroot "$target" update-alternatives --set x-cursor-theme /etc/X11/cursors/whiteglass.theme
+fi