From bb4b8ddc796a7f843984be2a351651a20ebdad80 Mon Sep 17 00:00:00 2001 From: thib Date: Wed, 21 Jun 2000 10:42:19 +0000 Subject: [PATCH] A mail is now send to root after a crash to ask him to do a bug report --- Makefile.in | 4 ++-- script/boot-install | 38 +++++++++++++++++--------------------- 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/Makefile.in b/Makefile.in index 7a61725..9a4e48a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -2,7 +2,7 @@ # fcron's Makefile ######## ############################ -# $Id: Makefile.in,v 1.17 2000-06-19 12:44:18 thib Exp $ +# $Id: Makefile.in,v 1.18 2000-06-21 10:46:28 thib Exp $ # ********************************************************* # # *** Begin of configurable stuffs ************************ # @@ -104,7 +104,7 @@ install: all $(INSTALL) -c -m 644 -o root doc/fcrontab.1 $(DESTMAN)/man1/ $(INSTALL) -c -m 644 -o root doc/fcrontab.5 $(DESTMAN)/man5/ $(INSTALL) -c -m 644 -o root doc/bitstring.3 $(DESTMAN)/man3/ - script/sysVinit-install "$(CFLAGS)" $(INSTALL) + (cd script ; ./sysVinit-install $(INSTALL) $(DESTSBIN)) mkdir -p $(DESTDOC)/fcron-$(VERSION) cd doc; $(INSTALL) -c -m 644 -o root README LICENSE CHANGES *.html \ $(DESTDOC)/fcron-$(VERSION)/ diff --git a/script/boot-install b/script/boot-install index 5fa3e68..69bdeb5 100755 --- a/script/boot-install +++ b/script/boot-install @@ -2,51 +2,47 @@ # Install fcron under SysV system. # -# $Id: boot-install,v 1.6 2000-05-30 19:23:52 thib Exp $ +# $Id: boot-install,v 1.7 2000-06-21 10:42:19 thib Exp $ -# take two arguments : first is the compilation line arguments, in order -# to determine if fcron should be installed with debugs options, -# and the second is the name of the BSD-like install program +# take one arguments : the name of the BSD-like install program PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" startdir=$pwd +DEBUG=1 if test $# -ne 2; then echo "Too few arguments" exit 1 fi +$1 -c -m 755 -o root fcron-launcher $2 + if test -f /etc/rc.d/rc.M; then # Slackware - if ! cat /etc/rc.d/rc.local | grep "fcron -b"; then - echo "fcron -b" >> /etc/rc.d/rc.local + if ! cat /etc/rc.d/rc.local | grep "fcron-launcher"; then + echo "fcron-launcher" >> /etc/rc.d/rc.local fi fi if test -f /etc/rc; then # FreeBSD - if ! cat /etc/rc.local | grep "fcron -b"; then - echo "fcron -b" >> /etc/rc.local + if ! cat /etc/rc.local | grep "fcron-launcher"; then + echo "fcron-launcher" >> /etc/rc.local fi fi if test -d /etc/rc.d/init.d/; then - if echo $1 | grep -e '-DDEBUG'; then - $2 -c -m 755 -o root script/sysVinit-launcher-debug /etc/rc.d/init.d/fcron + if test $DEBUG -eq 1; then + $1 -c -m 755 -o root sysVinit-launcher-debug /etc/rc.d/init.d/fcron else - $2 -c -m 755 -o root script/sysVinit-launcher /etc/rc.d/init.d/fcron + $1 -c -m 755 -o root sysVinit-launcher /etc/rc.d/init.d/fcron fi - cd /etc/rc.d/rc3.d/ - ln -f -s ../init.d/fcron S40fcron - cd /etc/rc.d/rc4.d/ - ln -f -s ../init.d/fcron S40fcron - cd /etc/rc.d/rc5.d/ - ln -f -s ../init.d/fcron S40fcron + cd /etc/rc.d/rc3.d/ ; ln -f -s ../init.d/fcron S40fcron + cd /etc/rc.d/rc4.d/ ; ln -f -s ../init.d/fcron S40fcron + cd /etc/rc.d/rc5.d/ ; ln -f -s ../init.d/fcron S40fcron - cd /etc/rc.d/rc0.d/ - ln -f -s ../init.d/fcron K60fcron - cd /etc/rc.d/rc6.d/ - ln -f -s ../init.d/fcron K60fcron + cd /etc/rc.d/rc0.d/ ; ln -f -s ../init.d/fcron K60fcron + cd /etc/rc.d/rc6.d/ ; ln -f -s ../init.d/fcron K60fcron cd $startdir fi -- 2.40.0