projects
/
grml-etc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bbd6d23
)
Remove code to unmangle inittab from postrm
author
Christian Hofstaedtler
<ch@grml.org>
Sun, 11 Dec 2011 19:45:19 +0000
(20:45 +0100)
committer
Christian Hofstaedtler
<ch@grml.org>
Sun, 11 Dec 2011 19:45:19 +0000
(20:45 +0100)
debian/postrm
patch
|
blob
|
history
diff --git
a/debian/postrm
b/debian/postrm
index
55199c8
..
bdf6a0a
100755
(executable)
--- a/
debian/postrm
+++ b/
debian/postrm
@@
-16,16
+16,6
@@
undivert_gen() {
--divert $2/$1.$DEXT $2/$1 #> /dev/null
}
--divert $2/$1.$DEXT $2/$1 #> /dev/null
}
-replace_grml_with_orig_inittab() {
- if grep -q '^l0:0:wait:/etc/init.d/grml-halt$' /etc/inittab ; then
- sed -i 's|^l0:0:wait:/etc/init.d/grml-halt|l0:0:wait:/etc/init.d/rc 0|' /etc/inittab
- fi
-
- if grep -q '^l6:6:wait:/etc/init.d/grml-reboot$' /etc/inittab ; then
- sed -i 's|^l6:6:wait:/etc/init.d/grml-reboot|l6:6:wait:/etc/init.d/rc 6|' /etc/inittab
- fi
-}
-
case "$1" in
purge)
for cmd in $TO_UNDIVERT1; do
case "$1" in
purge)
for cmd in $TO_UNDIVERT1; do
@@
-39,11
+29,9
@@
case "$1" in
fi
fi
fi
fi
- replace_grml_with_orig_inittab
;;
remove|abort-install|disappear)
;;
remove|abort-install|disappear)
- replace_grml_with_orig_inittab
;;
upgrade|failed-upgrade|abort-install|abort-upgrade)
;;
upgrade|failed-upgrade|abort-install|abort-upgrade)