From 325235e80d26f8dd883a553958e3ef1d8605d666 Mon Sep 17 00:00:00 2001 From: Steven Valdez Date: Mon, 1 Apr 2013 20:32:18 -0400 Subject: [PATCH] Preventing the modification of non-existent bootmisc.sh --- debian/changelog | 6 ++++++ debian/transform_bootmisc.sh.invirt | 5 +++++ 2 files changed, 11 insertions(+) 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 <