aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/busybox/files/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/busybox/files/prerm')
-rw-r--r--recipes/busybox/files/prerm10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes/busybox/files/prerm b/recipes/busybox/files/prerm
new file mode 100644
index 0000000000..7ade4b1dec
--- /dev/null
+++ b/recipes/busybox/files/prerm
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if [ "$1" != "upgrade" ]; then
+ update-alternatives --remove sh /bin/busybox
+ update-alternatives --remove vi /bin/busybox
+ find /etc -name [SK][0-9][0-9]hwclock.sh | xargs rm -f
+ find /etc -name [SK][0-9][0-9]syslog | xargs rm -f
+fi
+
+exit 0