Check for writeable /tmp before executing hardware detection 0.3.31
authorMichael Prokop <mika@grml.org>
Tue, 4 Sep 2007 10:51:45 +0000 (12:51 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 4 Sep 2007 10:51:45 +0000 (12:51 +0200)
debian/changelog
grml-x

index c92a309..caf7959 100644 (file)
@@ -1,3 +1,9 @@
+grml-x (0.3.31) unstable; urgency=low
+
+  * Check for writeable /tmp before executing hardware detection.
+
+ -- Michael Prokop <mika@grml.org>  Tue,  4 Sep 2007 12:51:22 +0200
+
 grml-x (0.3.30) unstable; urgency=low
 
   * Some further error handling regarding Xinerama.
diff --git a/grml-x b/grml-x
index 97e2ae1..89c483e 100755 (executable)
--- a/grml-x
+++ b/grml-x
@@ -4,9 +4,16 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Don Jul 12 02:53:42 CEST 2007 [mika]
+# Latest change: Die Sep 04 01:44:19 CEST 2007 [mika]
 ################################################################################
 
+# make sure /tmp is writeable {{{
+  if ! [ -w /tmp ] ; then
+     echo 'Fatal: /tmp is not writeable. Can not resume therefore, sorry.' >&2
+     exit 1
+  fi
+# }}}
+
 # debugging {{{
 # usage: DEBUG=1 grml-x ..... 2>/tmp/grml-x-debug.log
   if [[ $DEBUG -gt 0 ]]; then