Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > 43dc4a321b0e5c7f7b2294c1360168fb > scriptlet

kernel-2.2.22-6.i686.rpm

POSTIN

/bin/sh
test ! -f /boot/vmlinuz || mv -f /boot/vmlinuz /boot/vmlinuz.old
test ! -f /boot/System.map || mv -f /boot/System.map /boot/System.map.old
ln -sf vmlinuz-2.2.22-6 /boot/vmlinuz
ln -sf System.map-2.2.22-6 /boot/System.map

rm -f /lib/modules/2.2.22
ln -snf 2.2.22-6 /lib/modules/2.2.22

depmod -a -F /boot/System.map 2.2.22-6

geninitrd /boot/initrd-2.2.22-6.gz 2.2.22-6
test ! -f /boot/initrd || mv -f /boot/initrd /boot/initrd.old
ln -sf initrd-2.2.22-6.gz /boot/initrd

#if [ -x /sbin/rc-boot ] ; then
#	/sbin/rc-boot 1>&2 || :
#fi

POSTUN

/bin/sh
if [ -L /lib/modules/2.2.22 ]; then
	if [ "`ls -l /lib/modules/2.2.22 | awk '{ print $11 }'`" = "2.2.22-6" ]; then
		if [ "$1" = "0" ]; then
			rm -f /lib/modules/2.2.22
		fi
	fi
fi
rm -f /boot/initrd-2.2.22-6.gz