]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Keep /proc/bus/usb mounted for ekeyd
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 23 Feb 2011 18:00:34 +0000 (15:00 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 23 Feb 2011 18:00:34 +0000 (15:00 -0300)
files/etc/rc.local

index 504274e5d7b49cc61370e2abaa854d51c567b3d5..13987bc375f44eb1b265b22ac7c30a1ddfcc4fae 100644 (file)
@@ -21,5 +21,10 @@ rm -f /var/lib/puppet/state/puppetdlock
 /etc/init.d/puppet stop
 /etc/init.d/puppet start
 
+# Keep this mountpoint while ekeyd fact needs it
+if [ -d "/proc/bus/usb" ]; then
+  /bin/mount -t usbfs usbfs /proc/bus/usb -onodev,noexec,nosuid
+fi
+
 # Then exit
 exit 0