|
From: <sk...@us...> - 2011-08-09 05:45:23
|
Revision: 2430
http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2430&view=rev
Author: skitt
Date: 2011-08-09 05:45:18 +0000 (Tue, 09 Aug 2011)
Log Message:
-----------
Create /var/lib/joystick if necessary (Debian #632623).
Modified Paths:
--------------
trunk/utils/jscal-store.in
Modified: trunk/utils/jscal-store.in
===================================================================
--- trunk/utils/jscal-store.in 2011-08-09 05:43:09 UTC (rev 2429)
+++ trunk/utils/jscal-store.in 2011-08-09 05:45:18 UTC (rev 2430)
@@ -24,6 +24,14 @@
STORE=/var/lib/joystick/joystick.state
+if [ ! -d $(dirname $STORE) ]; then
+ mkdir -p $(dirname $STORE)
+ if [ $? -gt 0 ]; then
+ echo Unable to create directory $(dirname $STORE)! >&2
+ exit 1
+ fi
+fi
+
# Filter the existing file
if [ -f $STORE ]; then
if [ -z "$NAME" ] && [ -z "$VENDOR" ]; then
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|