+ $ROOTCMD update-alternatives --set vi /usr/bin/vim.basic
+fi
+
+## Too many people don't expect to get that, so deactive by default:
+# if [ -r $target/usr/bin/vim.tiny ] ; then
+# $ROOTCMD update-alternatives --set vi /usr/bin/vim.tiny
+# fi
+
+if [ -r $target/usr/bin/uxterm ] ; then
+ $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/uxterm
+elif [ -r $target/usr/bin/xterm ] ; then
+ $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/xterm
+fi
+
+if [ -r $target/etc/X11/cursors/whiteglass.theme ] ; then
+ $ROOTCMD update-alternatives --set x-cursor-theme /etc/X11/cursors/whiteglass.theme
+fi
+
+if [ -r $target/usr/bin/iceweasel ] ; then
+ $ROOTCMD update-alternatives --set x-www-browser /usr/bin/iceweasel
+fi
+
+if [ -r $target/usr/bin/w3m ] ; then
+ $ROOTCMD update-alternatives --set www-browser /usr/bin/w3m