pkgsrc/pkgtools/libkver/DEINSTALL
seb 030685f07e Update to version 0.4.
Libkver is now run-time configurable, see installed kver(3), it now
installs in LOCALBASE and uses install/deinstall scripts to replace/restore
/sbin/sysctl if needed.
2003-12-13 17:45:59 +00:00

12 lines
342 B
Text

# $NetBSD: DEINSTALL,v 1.1 2003/12/13 17:45:59 seb Exp $
HAS_SYSCTL=@HAS_SYSCTL@
case ${STAGE} in
DEINSTALL)
if ${HAS_SYSCTL} && [ -f /sbin/sysctl.pre-${PKGBASE} ]; then
${RM} -f /sbin/sysctl && \
${MV} /sbin/sysctl.pre-${PKGBASE} /sbin/sysctl && \
${ECHO} "/sbin/sysctl.pre-${PKGBASE} has been restored as /sbin/sysctl"
fi
esac