Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > e9a0f148f44c95818a1faf65146786e5 > scriptlet

kernel-linus-devel-5.10.27-1.mga7-1-1.mga7.armv7hl.rpm

PREUN

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


###
### file lists
###

# kernel

POSTIN

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