summaryrefslogtreecommitdiff
path: root/data/coreutils-bin/_metadata/postrm.appletvos-arm64
blob: 605c0a4afa040fbfc07918089608d1be84483922 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then
    for bin in cat chmod cp date dd kill ln ls mkdir mv pwd rm rmdir sleep stty; do
        dpkg-divert --package coreutils-bin --remove --rename \
           --divert /bin/.${bin}.binpack /bin/${bin}
    done
    dpkg-divert --package coreutils-bin --remove --rename \
        --divert /usr/bin/.dirname.binpack /usr/bin/dirname
fi