[Debconf-video-commits] r222 - fai-config/scripts/DEBCONF8
holger at alioth.debian.org
holger at alioth.debian.org
Fri Aug 8 03:06:09 UTC 2008
Author: holger
Date: 2008-08-08 03:06:09 +0000 (Fri, 08 Aug 2008)
New Revision: 222
Modified:
fai-config/scripts/DEBCONF8/50-smart-munin
Log:
make it smarter
Modified: fai-config/scripts/DEBCONF8/50-smart-munin
===================================================================
--- fai-config/scripts/DEBCONF8/50-smart-munin 2008-08-08 02:51:23 UTC (rev 221)
+++ fai-config/scripts/DEBCONF8/50-smart-munin 2008-08-08 03:06:09 UTC (rev 222)
@@ -9,8 +9,12 @@
# smart munin plugins
#
for i in hda hdb hdc sda sdb sdc sdd sde sdf ; do {
- [ -b /dev/$i ] && ln -sf /usr/share/munin/plugins/smart_ /etc/munin/plugins/smart_$i && ainsl /etc/default/smartmontools "start_smartd=yes"
+ [ -b /dev/$i ] && ln -sf /usr/share/munin/plugins/smart_ $target/etc/munin/plugins/smart_$i
} ; done
+ls /etc/munin/plugins/smart_??? | grep smart > /dev/null 2>&1 && {
+ ainsl $target/etc/default/smartmontools "start_smartd=yes"
+ $ROOTCMD /etc/init.d/smartmontools reload
+ $ROOTCMD ln -sf /usr/share/munin/plugins/hddtemp_smartctl /etc/munin/plugins/hddtemp_smartctl
+ $ROOTCMD /etc/init.d/munin-node restart
+}
-$ROOTCMD ln -sf /usr/share/munin/plugins/hddtemp_smartctl /etc/munin/plugins/hddtemp_smartctl
-$ROOTCMD /etc/init.d/munin-node restart
More information about the Debconf-video-commits
mailing list