PREUN
/bin/sh
for i in /lib/modules/3.14.41-tmb-*-1.mga4/{build,source}; do if [ -L $i ]; then if [ "$(readlink $i)" = "/usr/src/3.14.41-tmb-1.mga4" ]; then rm -f $i fi fi done exit 0 # # kernel-source-latest: virtual rpm #
POSTIN
/bin/sh
for i in /lib/modules/3.14.41-tmb-*-1.mga4; do if [ -d $i ]; then if [ ! -L $i/build -a ! -L $i/source ]; then ln -sf /usr/src/3.14.41-tmb-1.mga4 $i/build ln -sf /usr/src/3.14.41-tmb-1.mga4 $i/source fi fi done