From: Steven Valdez Date: Tue, 2 Apr 2013 00:32:18 +0000 (-0400) Subject: Preventing the modification of non-existent bootmisc.sh X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-console.git/commitdiff_plain/refs/heads/dvorak42 Preventing the modification of non-existent bootmisc.sh --- diff --git a/debian/changelog b/debian/changelog index b2f91b4..d412a46 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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. diff --git a/debian/transform_bootmisc.sh.invirt b/debian/transform_bootmisc.sh.invirt index b6a4b6d..15ffb4b 100755 --- a/debian/transform_bootmisc.sh.invirt +++ b/debian/transform_bootmisc.sh.invirt @@ -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 <