grml-terminalserver-config: move file grub.img only if it exists
authorMichael Prokop <devnull@localhost>
Thu, 3 Jan 2008 12:01:07 +0000 (13:01 +0100)
committerMichael Prokop <devnull@localhost>
Thu, 3 Jan 2008 12:01:07 +0000 (13:01 +0100)
debian/changelog
grml-terminalserver-config

index aac59e4..61607e1 100644 (file)
@@ -1,3 +1,13 @@
+grml-terminalserver (0.93) unstable; urgency=low
+
+  [ Michael Gebetsroither ]
+  * grml-terminalserver-config: fix problem with unclosed ]
+
+  [ Michael Prokop ]
+  * grml-terminalserver-config: move file grub.img only if it exists
+
+ -- Michael Prokop <mika@grml.org>  Thu, 03 Jan 2008 13:00:46 +0100
+
 grml-terminalserver (0.92) unstable; urgency=low
 
   [ Michael Prokop ]
index c9920ad..8a3d60b 100755 (executable)
@@ -558,8 +558,12 @@ EOT
   isExistent $st1_ warn || return 1
   isExistent $st2_ warn || return 1
 
-  execute "mv -fb $PATH_/grub.img $PATH_/grub.img.old"
+  if [ -r "$PATH_/grub.img" ] ; then
+     execute "mv -fb $PATH_/grub.img $PATH_/grub.img.old"
+  fi
+
   execute "cat $st1_ $st2_ > $PATH_/grub.img" warn || return 1
+
   return 0
 }