mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
892a3a954e
- Remove BROKEN on > 8.x
28 lines
628 B
Plaintext
28 lines
628 B
Plaintext
if [ ! "$2" = "POST-DEINSTALL" ]; then
|
|
MODULENAME=dazuko
|
|
FREEBSDVER=`uname -r | cut -f 1 -d .`
|
|
|
|
kldstat -n ${MODULENAME} > /dev/null 2>&1; RESULT=$?
|
|
if [ ${RESULT} -eq 0 ]; then
|
|
kldunload -f -n ${MODULENAME}
|
|
fi
|
|
|
|
if [ "${FREEBSDVER}" = "4" ]; then
|
|
rm /modules/${MODULENAME}.ko
|
|
else
|
|
rm /boot/modules/${MODULENAME}.ko
|
|
fi
|
|
|
|
if [ -f /boot/modules/linker.hints ]; then
|
|
rm /boot/modules/linker.hints
|
|
fi
|
|
|
|
if [ -f /boot/loader.conf ]; then
|
|
cat /etc/rc.local | grep ${MODULENAME} > /dev/null 2>&1; RESULT=$?
|
|
if [ ${RESULT} -eq 0 ]; then
|
|
sed -i '' -e "/${MODULENAME}/d" /etc/rc.local
|
|
fi
|
|
fi
|
|
fi
|
|
exit 0
|