summaryrefslogtreecommitdiff
path: root/data/system-cmds/_metadata/postrm.appletvos-arm64
diff options
context:
space:
mode:
Diffstat (limited to 'data/system-cmds/_metadata/postrm.appletvos-arm64')
-rwxr-xr-xdata/system-cmds/_metadata/postrm.appletvos-arm6410
1 files changed, 10 insertions, 0 deletions
diff --git a/data/system-cmds/_metadata/postrm.appletvos-arm64 b/data/system-cmds/_metadata/postrm.appletvos-arm64
new file mode 100755
index 000000000..0077f1b9e
--- /dev/null
+++ b/data/system-cmds/_metadata/postrm.appletvos-arm64
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then
+ for file in /sbin/dmesg /usr/bin/arch /usr/bin/hostinfo /usr/bin/login /usr/bin/passwd /usr/sbin/reboot /usr/sbin/sysctl; do
+ filename=$(basename $file)
+ dirname=$(dirname $file)
+ dpkg-divert --package system-cmds --remove --rename \
+ --divert ${dirname}/.${filename}.binpack $file
+ done
+fi