projects
/
grml-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Systemd support, providing backwards compatibility via FILE_RC class [Closes: issue1015]
[grml-live.git]
/
etc
/
grml
/
fai
/
config
/
scripts
/
GRMLBASE
/
94-update-smart-drivedb
diff --git
a/etc/grml/fai/config/scripts/GRMLBASE/94-update-smart-drivedb
b/etc/grml/fai/config/scripts/GRMLBASE/94-update-smart-drivedb
index
3baa757
..
1b98ef6
100755
(executable)
--- a/
etc/grml/fai/config/scripts/GRMLBASE/94-update-smart-drivedb
+++ b/
etc/grml/fai/config/scripts/GRMLBASE/94-update-smart-drivedb
@@
-17,15
+17,19
@@
set -e
[ -x $target/usr/bin/timeout ] && TIMEOUT="10" || TIMEOUT=""
if ! [ -x ${target}/usr/sbin/update-smart-drivedb ] ; then
[ -x $target/usr/bin/timeout ] && TIMEOUT="10" || TIMEOUT=""
if ! [ -x ${target}/usr/sbin/update-smart-drivedb ] ; then
- echo "
Warning: smartmontools not installed
"
+ echo "
NOTE: update-smart-drivedb not present (possibly smartmontools >=6.4+svn4214-1 present)
"
exit 0
fi
echo "Updating smartmontool drivedb"
if [ -n "$TIMEOUT" ] ; then
exit 0
fi
echo "Updating smartmontool drivedb"
if [ -n "$TIMEOUT" ] ; then
- $ROOTCMD timeout $TIMEOUT update-smart-drivedb
+ if ! $ROOTCMD timeout $TIMEOUT update-smart-drivedb ; then
+ echo "Warning: failed to update smartmontool drivedb, ignoring failure"
+ fi
else
else
- $ROOTCMD update-smart-drivedb
+ if ! $ROOTCMD update-smart-drivedb ; then
+ echo "Warning: failed to update smartmontool drivedb, ignoring failure"
+ fi
fi
## END OF FILE #################################################################
fi
## END OF FILE #################################################################