projects
/
invirt/packages/invirt-console.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Preventing the modification of non-existent bootmisc.sh
[invirt/packages/invirt-console.git]
/
debian
/
transform_bootmisc.sh.invirt
diff --git
a/debian/transform_bootmisc.sh.invirt
b/debian/transform_bootmisc.sh.invirt
index
b6a4b6d
..
15ffb4b
100755
(executable)
--- 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 <<EOF
# Yes, I there's no context. But the lines being replaced are less