From bbebca4a9e37e95be30cb277f9840bc9e354b8a7 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Mon, 19 Apr 2010 09:24:37 +0000 Subject: [PATCH] move back the postun section and add a condition to make it only run for the real uninstall git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5805 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/xCAT.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index 9ec1fe776..4cfe825b4 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -131,3 +131,14 @@ fi /install/prescripts %defattr(-,root,root) +%postun +if [ "$1" = "0" ]; then +%ifnos linux +if grep "^xcatd" /etc/inittab >/dev/null +then +/usr/sbin/rmitab xcatd >/dev/null +fi +%endif +true # so on aix we do not end up with an empty if stmt +fi +