[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#345364: patch to create /var/run/usbmount if it does not exist



Hello,

I also use tmpfs on /var/run, attaching the patch for
/usr/share/usbmount/usbmount
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
There's a long-standing bug relating to the x86 architecture that
allows you to install Windows.   -- Matthew D. Fuller
--- /usr/share/usbmount/usbmount.orig	2007-01-27 12:22:14.000000000 +0100
+++ /usr/share/usbmount/usbmount	2007-12-20 12:00:18.000000000 +0100
@@ -56,6 +56,9 @@
 
 if test "$1" = add; then
 
+    # create directory if it does not exist
+    test -d /var/run/usbmount || mkdir /var/run/usbmount
+
     # Acquire lock.
     log debug "trying to acquire lock /var/run/usbmount/.mount.lock"
     lockfile-create --retry 3 /var/run/usbmount/.mount || \

Reply to: