fix
diff --git a/ChangeLog b/ChangeLog
index 5a6af1b..c1afe5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
* Add 'mount.fuse' written by Petr Klima
+ * '/dev/fuse' is created by 'make install' if does not yet exist
+
2005-06-20 Miklos Szeredi <miklos@szeredi.hu>
* Fix UCLIBC compile error. Patch by Christian Magnusson
diff --git a/util/Makefile.am b/util/Makefile.am
index 4b6f7d1..2ac6805 100644
--- a/util/Makefile.am
+++ b/util/Makefile.am
@@ -7,8 +7,13 @@
install-exec-hook:
-chown root $(DESTDIR)$(bindir)/fusermount
-chmod u+s $(DESTDIR)$(bindir)/fusermount
+ @if test ! -e $(DESTDIR)/dev/fuse; then \
+ $(mkdir_p) $(DESTDIR)/dev; \
+ echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229"; \
+ mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229; \
+ fi
-EXTRA_DIST: mount.fuse
+EXTRA_DIST = mount.fuse
install-exec-local:
$(INSTALL_PROGRAM) $(srcdir)/mount.fuse $(DESTDIR)/sbin/mount.fuse