diff options
author | James Meyer <james.meyer@operamail.com> | 2009-08-29 16:29:01 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-08-29 16:29:01 (GMT) |
commit | 25c30209666f591371476d272712e92e7173ce7c (patch) | |
tree | 6ea95b7567b6a094af18832bc36953b3f28dd12f /abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run | |
parent | 3eeb924c21ef82a144d1fa48c3dd2d571ea4f9bc (diff) | |
download | linhes_pkgbuild-25c30209666f591371476d272712e92e7173ce7c.zip linhes_pkgbuild-25c30209666f591371476d272712e92e7173ce7c.tar.gz linhes_pkgbuild-25c30209666f591371476d272712e92e7173ce7c.tar.bz2 |
mv-core: add fbsplash-runit
Diffstat (limited to 'abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run')
-rwxr-xr-x | abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run b/abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run index 15ed769..f3f3bf8 100755 --- a/abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run @@ -1,13 +1,13 @@ #!/bin/bash - - . /etc/rc.conf - . /etc/rc.d/functions - - stat_runit "Starting smartd" - /usr/sbin/smartd -n -c /etc/smartd.conf -q never &>/dev/null - if [ $? -ne 0 ]; then +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Starting smartd" +/usr/sbin/smartd -n -c /etc/smartd.conf -q never &>/dev/null +if [ $? -ne 0 ] +then stat_fail - else - add_daemon smartd - stat_done - fi +else + add_daemon smartd + stat_done +fi |