From: <rap...@us...> - 2003-12-29 18:53:52
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv18178/scripts Added Files: smartmontools Log Message: smartmontools initial checkin --- NEW FILE: smartmontools --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/smartmontools,v $ # $Revision: 1.1 $ # $Date: 2003/12/29 18:53:48 $ # # http://www.devil-linux.org # # SMARTMONTOOLS added by Diego Torres <rap...@an...> # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: smartmontools # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: Suite that performs S.M.A.R.T. tasks such as disk self-checks and disk self-checks ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions MYNAME=SMARTMONTOOLS case $1 in build ) if [ "$CONFIG_SMARTMONTOOLS" = "y" ]; then ./configure --prefix=/usr --with-initscriptdir=/etc/init.d --mandir=/usr/share/man || exit 1 #--sysconfdir=/etc --localstatedir=/var || exit 1 ##--disable-lzo make $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_SMARTMONTOOLS" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 make install-strip DESTDIR=$WORKDIR/tmp || exit 1 copy_files $WORKDIR/tmp/usr/sbin $CDDIR/usr/ || exit 1 cp $WORKDIR/tmp/usr/etc/smartd.conf $ETCDIR/etc || exit 1 cp $WORKDIR/tmp/etc/init.d/smartd $ETCDIR/etc/init.d || exit 1 copy_docs $WORKDIR/tmp rm -rf $WORKDIR/tmp || exit 1 echo "HELP_$MYNAME=\"$MYNAME is a suite that performs S.M.A.R.T. tasks\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |
From: Heiko Z. <he...@zu...> - 2003-12-31 19:36:17
|
rap...@us... wrote: >Update of /cvsroot/devil-linux/build/scripts >In directory sc8-pr-cvs1:/tmp/cvs-serv18178/scripts > >Added Files: > smartmontools >Log Message: >smartmontools initial checkin > > There's a message during boot, that the "Unkown Linux Distribution" is not supported. Looks like there's something missing in the smarttools init script. Heiko |
From: Diego T. <dt...@co...> - 2003-12-31 19:53:22
|
On Wed, Dec 31, 2003 at 02:31:57PM -0500, Heiko Zuerker wrote: > There's a message during boot, that the "Unkown Linux Distribution" is > not supported. > > Looks like there's something missing in the smarttools init script. the init script should be disabled and configured by the user before it could be usable, but has to be on /etc/init.d any ideas? the default script is the one from smartmontools, and it tries to autodetect the current distribution. (and of course, i don't want to modify it. that should be done by the user) -- -- gnupg keyfingerprint -- 48AF 5BF9 8F54 2966 64CC 2327 7CD0 DD91 B09D 5799 -- Use of a keyboard or mouse may be linked to serious injuries or disorders. Diego Torres - dtorres at anthalia dot org - Madrid / España |
From: Heiko Z. <he...@zu...> - 2003-12-31 20:26:17
|
Diego Torres wrote: >On Wed, Dec 31, 2003 at 02:31:57PM -0500, Heiko Zuerker wrote: > > > >>There's a message during boot, that the "Unkown Linux Distribution" is >>not supported. >> >>Looks like there's something missing in the smarttools init script. >> >> > >the init script should be disabled and configured by the user before it could be usable, but has to be on /etc/init.d > >any ideas? the default script is the one from smartmontools, and it tries to autodetect the current distribution. (and of course, i don't want to modify it. that should be done by the user) > > > Can't you write your own init script and put all the modular parts in a config file? Heiko |
From: Diego T. <dt...@co...> - 2003-12-31 21:01:46
|
On Wed, Dec 31, 2003 at 03:22:13PM -0500, Heiko Zuerker wrote: > Can't you write your own init script and put all the modular parts in a > config file? there are lots of things that could be configurable, but i'd set up a "default" init script. i think that packages on dl shouldn't be pre-configured, because that can include "holes" in a firewall/router/server. AS always, i could be wrong :) -- -- gnupg keyfingerprint -- 48AF 5BF9 8F54 2966 64CC 2327 7CD0 DD91 B09D 5799 -- Use of a keyboard or mouse may be linked to serious injuries or disorders. Diego Torres - dtorres at anthalia dot org - Madrid / España |
From: Bruce S. <bw...@ar...> - 2003-12-31 21:07:01
|
> > Can't you write your own init script and put all the modular parts in a > > config file? > > there are lots of things that could be configurable, but i'd set up a "default" > init script. I think you need to add a "START_SMARTMONTOOLS=no" to /etc/sysconfig/config and check the variable in the init script. > i think that packages on dl shouldn't be pre-configured, because that can > include "holes" in a firewall/router/server. AS always, i could be wrong :) That sounds right to me. :-) - BS |