cvs commit: BLFS/bootscripts/blfs/init.d kerberos usb

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Sat May 15 00:03:18 PDT 2004


tushar      04/05/15 01:03:18

  Modified:    bootscripts ChangeLog Makefile
  Added:       bootscripts/blfs/init.d kerberos usb
  Log:
  Added usb and kerberos scripts
  
  Revision  Changes    Path
  1.2       +4 -0      BLFS/bootscripts/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /home/cvsroot/BLFS/bootscripts/ChangeLog,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -u -r1.1 -r1.2
  --- ChangeLog	14 May 2004 06:03:34 -0000	1.1
  +++ ChangeLog	15 May 2004 07:03:17 -0000	1.2
  @@ -1,3 +1,7 @@
  +2004-05-14 Tushar T <tushar at linuxfromscratch.org>
  +	* Added init.d/kerberos script.
  +	* Added init.d/usb script.
  +
   2004-05-13 Tushar T <tushar at linuxfromscratch.org>
   	* The begining of blfs-bootscripts.
   
  
  
  
  1.2       +46 -2     BLFS/bootscripts/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvsroot/BLFS/bootscripts/Makefile,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -u -r1.1 -r1.2
  --- Makefile	14 May 2004 06:03:34 -0000	1.1
  +++ Makefile	15 May 2004 07:03:17 -0000	1.2
  @@ -136,6 +136,16 @@
   	ln -sf  ../init.d/heimdal ${EXTDIR}/rc.d/rc5.d/S28heimdal
   	ln -sf  ../init.d/heimdal ${EXTDIR}/rc.d/rc6.d/K42heimdal
   
  +install-kerberos: create-dirs
  +	install -m 754 blfs/init.d/kerberos ${EXTDIR}/rc.d/init.d/
  +	ln -sf ../init.d/kerberos ../rc0.d/K42kerberos
  +	ln -sf ../init.d/kerberos ../rc1.d/K42kerberos
  +	ln -sf ../init.d/kerberos ../rc2.d/K42kerberos
  +	ln -sf ../init.d/kerberos ../rc3.d/S28kerberos
  +	ln -sf ../init.d/kerberos ../rc4.d/S28kerberos
  +	ln -sf ../init.d/kerberos ../rc5.d/S28kerberos
  +	ln -sf ../init.d/kerberos ../rc6.d/K42kerberos
  +
   install-lisa: create-dirs
   	install -m 754 blfs/init.d/lisa       ${EXTDIR}/rc.d/init.d/
   	ln -sf  ../init.d/lisa ${EXTDIR}/rc.d/rc0.d/K35lisa
  @@ -296,6 +306,10 @@
   	ln -sf  ../init.d/sshd ${EXTDIR}/rc.d/rc5.d/S30sshd
   	ln -sf  ../init.d/sshd ${EXTDIR}/rc.d/rc6.d/K30sshd
   
  +install-usb: create-dirs
  +	install -m 754 blfs/init.d/usb        ${EXTDIR}/rc.d/init.d/
  +	ln -sf ../init.d/usb /etc/rc.d/rcsysinit.d/S90usb
  +
   install-xinetd: create-dirs
   	install -m 754 blfs/init.d/xinetd     ${EXTDIR}/rc.d/init.d/
   	ln -sf  ../init.d/xinetd ${EXTDIR}/rc.d/rc0.d/K49xinetd
  @@ -307,5 +321,35 @@
   	ln -sf  ../init.d/xinetd ${EXTDIR}/rc.d/rc6.d/K49xinetd
   
   .PHONY: all create-dirs create-service-dir \
  -	install-service-dhclient install-service-dhcpcd install-service-ipx install-service-pppoe \
  -	install-alsa install-apache install-bind install-cups install-dhcp install-exim install-fcron install-gdm install-gpm install-heimdal install-lprng install-mysql install-netfs install-nfs-client install-nfs-server install-ntp install-portmap install-postfix install-postgresql install-proftpd install-random install-rsync install-samba install-sendmail install-sshd install-xinetd
  +	install-service-dhclient \
  +	install-service-dhcpcd \
  +	install-service-ipx \
  +	install-service-pppoe \
  +	install-alsa \
  +	install-apache \
  +	install-bind \
  +	install-cups \
  +	install-dhcp \
  +	install-exim \
  +	install-fcron \
  +	install-gdm \
  +	install-gpm \
  +	install-heimdal \
  +	install-kerberos \
  +	install-lprng \
  +	install-mysql \
  +	install-netfs \
  +	install-nfs-client \
  +	install-nfs-server \
  +	install-ntp \
  +	install-portmap \
  +	install-postfix \
  +	install-postgresql \
  +	install-proftpd \
  +	install-random \
  +	install-rsync \
  +	install-samba \
  +	install-sendmail \
  +	install-sshd \
  +	install-usb \
  +	install-xinetd
  
  
  
  1.1                  BLFS/bootscripts/blfs/init.d/kerberos
  
  Index: kerberos
  ===================================================================
  #!/bin/sh
  # Begin $rc_base/init.d/kerberos
  
  # Based on sysklogd script from LFS-3.1 and earlier.
  # Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  
  . /etc/sysconfig/rc
  . $rc_functions
  
  case "$1" in
          start)  
                  echo "Starting Kerberos Authentication..."
                  loadproc krb5kdc
                  echo "Starting Kerberos Admin Daemon..."
                  loadproc kadmind
                  ;;
  
          stop)
                  echo "Stopping Kerberos Authentication..."
                  killproc krb5kdc
                  echo "Stopping Kerberos Admin Daemon..."
                  killproc kadmind
                  ;;
  
          reload)
                  echo "Reloading Kerberos Authentication..."
                  reloadproc krb5kdc
                  echo "Reloading Kerberos Admin Daemon..."
                  reloadproc kadmind
                  ;;
  
          restart)
                  $0 stop
                  sleep 1
                  $0 start
                  ;;
  
          status)
                  statusproc
                  ;;
  
          *)
                  echo "Usage: $0 {start|stop|reload|restart|status}"
                  exit 1
                  ;;
  esac
  # End $rc_base/init.d/kerberos
  
  
  
  1.1                  BLFS/bootscripts/blfs/init.d/usb
  
  Index: usb
  ===================================================================
  #!/bin/sh
  # Begin $rc_base/init.d/usb
  
  . /etc/sysconfig/rc
  . $rc_functions
  
  modprobe usbcore 2>/dev/null || true
  # insert a modprobe command for your USB host adapter here, e.g.
  # modprobe ehci-hcd 2>/dev/null
  # Other host adapters are uhci-hcd and ohci-hcd
  # 2.4.x kernels have usb-ehci, usb-uhci, and usb-ohci modules
  if ( grep -q usbfs /proc/filesystems )
  then
          echo "Mounting USB filesystem"
          mount -o devgid=15,devmode=0660 -t usbfs usbfs /proc/bus/usb
          evaluate_retval
  fi
  # End $rc_base/init.d/usb
  
  
  



More information about the blfs-book mailing list