summaryrefslogtreecommitdiffstats
path: root/misc/pinfo/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'misc/pinfo/doinst.sh')
-rw-r--r--misc/pinfo/doinst.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/misc/pinfo/doinst.sh b/misc/pinfo/doinst.sh
index 3354151c29..d514aad218 100644
--- a/misc/pinfo/doinst.sh
+++ b/misc/pinfo/doinst.sh
@@ -1,18 +1,15 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
- # If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
- # toss the redundant copy
rm $NEW
fi
- # Otherwise, we leave the .new copy for the admin to consider...
}
config etc/pinforc.new
if [ -x /usr/bin/install-info ]; then
- chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/pinfo.info.gz 2> /dev/null
+ /usr/bin/install-info usr/info/pinfo.info.gz usr/info/dir
fi