Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > c438d1c9f9cafad485121975e112d022 > scriptlet

kernel-linus-devel-4.14.13-1.mga6-1-1.mga6.armv5tl.rpm

PREUN

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


###
### file lists
###

# kernel

POSTIN

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