Preventing the modification of non-existent bootmisc.sh dvorak42
authorSteven Valdez <dvorak42@mit.edu>
Tue, 2 Apr 2013 00:32:18 +0000 (20:32 -0400)
committerSteven Valdez <dvorak42@mit.edu>
Tue, 2 Apr 2013 00:32:18 +0000 (20:32 -0400)
debian/changelog
debian/transform_bootmisc.sh.invirt

index b2f91b4..d412a46 100644 (file)
@@ -1,3 +1,9 @@
+invirt-console (0.2.15~dvorak421) precise; urgency=low
+
+  * Checking for existence of bootmisc.sh before it is patched.
+
+ -- Steven Valdez <dvorak42@mit.edu>  Mon, 01 Apr 2013 20:31:36 -0400
+
 invirt-console (0.2.15) unstable; urgency=low
 
   * Divert /etc/conserver/console.cf in the right binary package.
index b6a4b6d..15ffb4b 100755 (executable)
@@ -1,4 +1,9 @@
 #!/bin/bash
+
+if [ ! -x /etc/init.d/bootmisc.sh ]; then
+               exit 0
+fi
+
 patch -p0 -o /dev/fd/4 3<&0 4>&1 1>/dev/null <<EOF
 
 # Yes, I there's no context. But the lines being replaced are less