projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
90384ea
)
Stop ssh and mdadm in bailout
author
Michael Prokop
<mika@grml.org>
Mon, 9 Apr 2007 13:38:12 +0000
(15:38 +0200)
committer
Michael Prokop
<mika@grml.org>
Mon, 9 Apr 2007 13:38:12 +0000
(15:38 +0200)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
009b7e6
..
674a3ad
100644
(file)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-60,6
+60,8
@@
bailout(){
# make sure $TARGET is not mounted when exiting grml-debootstrap
if [ -n "$TARGET" ] ; then
if grep -q $TARGET /proc/mounts ; then
# make sure $TARGET is not mounted when exiting grml-debootstrap
if [ -n "$TARGET" ] ; then
if grep -q $TARGET /proc/mounts ; then
+ [ -x "$TARGET"/etc/init.d/ssh ] && "$TARGET"/etc/init.d/ssh stop
+ [ -x "$TARGET"/etc/init.d/mdadm ] && "$TARGET"/etc/init.d/mdadm stop
echo "Unmounting $TARGET"
umount "$TARGET"
fi
echo "Unmounting $TARGET"
umount "$TARGET"
fi