aboutsummaryrefslogtreecommitdiff
path: root/sysutils/freeipmi/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/freeipmi/pkg-install')
-rw-r--r--sysutils/freeipmi/pkg-install9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysutils/freeipmi/pkg-install b/sysutils/freeipmi/pkg-install
index 4a51e1843642..e2163feae7c0 100644
--- a/sysutils/freeipmi/pkg-install
+++ b/sysutils/freeipmi/pkg-install
@@ -1,13 +1,13 @@
#!/bin/sh
-conffiles="etc/fish/fish.scm etc/fish/sensors-conf.scm"
+conffiles="etc/fish/fish.scm etc/fish/ipmi-sensors-conf.scm"
rundir="/var/lib/freeipmi"
logdir="/var/log/freeipmi"
case "$2" in
POST-INSTALL)
for file in $conffiles; do
- [ -f "$PKG_PREFIX/$file" ] || \
+ [ -f "$PKG_PREFIX/$file-dist" -a ! -f "$PKG_PREFIX/$file" ] && \
cp "$PKG_PREFIX/$file-dist" "$PKG_PREFIX/$file"
done
@@ -16,8 +16,9 @@ POST-INSTALL)
touch "$rundir/ipckey"
;;
DEINSTALL)
- for file in etc/fish/fish.scm etc/fish/sensors-conf.scm; do
- cmp -s "$PKG_PREFIX/$file" "$PKG_PREFIX/$file-dist" && \
+ for file in $conffiles; do
+ [ -f "$PKG_PREFIX/$file-dist" ] && \
+ cmp -s "$PKG_PREFIX/$file" "$PKG_PREFIX/$file-dist" && \
rm -f $PKG_PREFIX/$file
done