mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
d249704368
- Add a note to files/pkg-message.in about a possible bug - Bump PORTREVISION Notified by: pointyhat via kris Submitted by: Jose Alonso Cardenas Marquez (maintainer)
34 lines
752 B
Bash
34 lines
752 B
Bash
#!/bin/sh
|
|
|
|
if [ "$2" = "POST-INSTALL" ]; then
|
|
|
|
MODULENAME=dazuko
|
|
|
|
echo -n "Do you want load ${MODULENAME}.ko? [ y/n ]: "
|
|
read LOADMOD
|
|
echo
|
|
|
|
if [ x"${LOADMOD}" = x"y" ]; then
|
|
kldstat -n ${MODULENAME} > /dev/null 2>&1; RESULT=$?
|
|
if [ ${RESULT} -eq 0 ]; then
|
|
kldunload -f -n ${MODULENAME}
|
|
fi
|
|
kldload ${MODULENAME}
|
|
fi
|
|
|
|
echo -n "Do you want load ${MODULENAME}.ko on boot time? [ y/n ]: "
|
|
read BOOTMOD
|
|
echo
|
|
|
|
if [ x"${BOOTMOD}" = x"y" ]; then
|
|
cat /etc/rc.local | grep ${MODULENAME} > /dev/null 2>&1; RESULT=$?
|
|
if [ ${RESULT} -eq 0 ]; then
|
|
sed -i '' -e '/kldload ${MODULENAME}.*/d' /etc/rc.local
|
|
echo `which kldload` ${MODULENAME} >> /etc/rc.local
|
|
else
|
|
echo `which kldload` ${MODULENAME} >> /etc/rc.local
|
|
fi
|
|
fi
|
|
fi
|
|
exit 0
|