2012-05-27 12:15:43 +02:00
|
|
|
#!/bin/bash
|
2011-08-23 14:30:29 +02:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
build ()
|
|
|
|
{
|
2012-05-27 12:15:43 +02:00
|
|
|
apps="/usr/sbin/smartctl /usr/sbin/smartd /usr/sbin/update-smart-drivedb"
|
|
|
|
for i in $apps; do
|
|
|
|
add_binary "$i"
|
|
|
|
done
|
2011-08-31 16:47:30 +02:00
|
|
|
add_file "/usr/share/archboot/smartmontools/etc/conf.d/smartd" "/etc/conf.d/smartd"
|
|
|
|
add_file "/usr/share/archboot/smartmontools/etc/smartd.conf" "/etc/smartd.conf"
|
2011-08-23 14:30:29 +02:00
|
|
|
add_file "/etc/rc.d/smartd"
|
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
|
|
|
This hook includes smartmontools on an arch boot image.
|
|
|
|
HELPEOF
|
|
|
|
}
|