summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/prerm
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-25 12:10:09 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-25 12:56:05 (EDT)
commit44a920821939fdd6a5c4a0c66c533f92c5a884bd (patch)
treead5360d0a74c3ce6c461d542dadec2ac60d607a3 /busybox.pkg/prerm
parent5a507fa874a1a85800e922e3ce4163035341d81f (diff)
busybox: Don't provide /var/www/index.html.
Diffstat (limited to 'busybox.pkg/prerm')
-rwxr-xr-xbusybox.pkg/prerm10
1 files changed, 10 insertions, 0 deletions
diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm
index 160a2d7..96a3db6 100755
--- a/busybox.pkg/prerm
+++ b/busybox.pkg/prerm
@@ -9,4 +9,14 @@ if [ "x${1}" = 'xupgrade' ]; then
while read link name prio; do
update-alternatives --remove "${name}" "${link}.busybox"
done </usr/share/busybox/alternatives
+ if [ -f /usr/share/busybox/www/SHA256SUMS ]; then
+ if [ -f /var/www/index.html ] && \
+ sha256sum -cs /usr/share/busybox/www/SHA256SUMS
+ then
+ # /var/www/index.html exists and hasn't been modified by
+ # the user.
+ rm /var/www/index.html
+ fi
+ rm /usr/share/busybox/www/SHA256SUMS
+ fi
fi