Initial configuration for FAI (work in progress)
[grml-live.git] / etc / grml / fai / config / scripts / GRML / 90-update-alternatives
diff --git a/etc/grml/fai/config/scripts/GRML/90-update-alternatives b/etc/grml/fai/config/scripts/GRML/90-update-alternatives
new file mode 100755 (executable)
index 0000000..6100e77
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -u
+set -e
+
+if [ -r "$target"/usr/bin/vim.basic ] ; then
+   chroot "$target" update-alternatives --set editor /usr/bin/vim.basic
+fi