+if [ -r $target/usr/bin/wm-ng ] ; then
+ # activate wm-ng only if it is registered as x-window-manager:
+ if $ROOTCMD update-alternatives --list x-window-manager | grep -q wm-ng ; then
+ $ROOTCMD update-alternatives --set x-window-manager /usr/bin/wm-ng
+ fi
+fi
+
+# sadly isn't available via update-alternates, anyway - use
+# ntfs-3g (if available) as default for ntfs
+if [ -r $target/sbin/mount.ntfs-3g ] || [ -L $target/sbin/mount.ntfs-3g ] ; then
+ $ROOTCMD ln -sf /sbin/mount.ntfs-3g /sbin/mount.ntfs
+fi
+