Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates > by-pkgid > 2fd54814615d28ec6b01d50119e278c7 > scriptlet

kernel-linus-devel-4.9.40-1.mga6-1-1.mga6.armv7hl.rpm

PREUN

/bin/sh
# we need to delete <modules>/{build,source} at uninstall
if [ -L /lib/modules/4.9.40-1.mga6/build ]; then
    rm -f /lib/modules/4.9.40-1.mga6/build
fi
if [ -L /lib/modules/4.9.40-1.mga6/source ]; then
    rm -f /lib/modules/4.9.40-1.mga6/source
fi
exit 0


###
### file lists
###

# kernel

POSTIN

/bin/sh
# place /build and /source symlinks in place.
if [ -d /lib/modules/4.9.40-1.mga6 ]; then
    ln -sf /usr/src/kernel-linus-devel-4.9.40-1.mga6 /lib/modules/4.9.40-1.mga6/build
    ln -sf /usr/src/kernel-linus-devel-4.9.40-1.mga6 /lib/modules/4.9.40-1.mga6/source
fi