From b1fc8f8aa9be5787e94fb83c3320979bacc01cb4 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 4 Sep 2007 12:51:45 +0200 Subject: [PATCH] Check for writeable /tmp before executing hardware detection --- debian/changelog | 6 ++++++ grml-x | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index c92a309..caf7959 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-x (0.3.31) unstable; urgency=low + + * Check for writeable /tmp before executing hardware detection. + + -- Michael Prokop 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 --- a/grml-x +++ b/grml-x @@ -4,9 +4,16 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # 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 -- 2.1.4