diff options
Diffstat (limited to 'pkgtools/libkver/DEINSTALL')
-rw-r--r-- | pkgtools/libkver/DEINSTALL | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgtools/libkver/DEINSTALL b/pkgtools/libkver/DEINSTALL new file mode 100644 index 00000000000..4ffdaf91618 --- /dev/null +++ b/pkgtools/libkver/DEINSTALL @@ -0,0 +1,12 @@ +# $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 |