cvs commit: LFS/bootscripts/contrib/init.d hotplug

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Sun May 16 20:09:26 PDT 2004


winkie      04/05/16 21:09:26

  Modified:    bootscripts CHANGELOG Makefile
  Added:       bootscripts/contrib/init.d hotplug
  Log:
  Added hotplug script
  
  Revision  Changes    Path
  1.84      +1 -0      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.83
  retrieving revision 1.84
  diff -u -r1.83 -r1.84
  --- CHANGELOG	17 May 2004 02:39:26 -0000	1.83
  +++ CHANGELOG	17 May 2004 03:09:26 -0000	1.84
  @@ -5,6 +5,7 @@
   	* Do not attempt to populate /dev if that directory has already been
   	  set up earlier in bootup (such as on initramfs/initrd)
   	* Prevent excessive kernel output once klogd starts
  +	* Added hotplug script
   
   n/a - May 15, 2004
   
  
  
  
  1.40      +6 -2      LFS/bootscripts/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/Makefile,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- Makefile	17 May 2004 00:09:06 -0000	1.39
  +++ Makefile	17 May 2004 03:09:26 -0000	1.40
  @@ -70,9 +70,13 @@
   	install -m 754 lfs/sysconfig/network-devices/ifdown          ${EXTDIR}/sysconfig/network-devices
   	install -m 754 lfs/sysconfig/network-devices/services/static ${EXTDIR}/sysconfig/network-devices/services
   
  +install-hotplug: create-dirs
  +	install -m 754 contrib/init.d/hotplug ${EXTDIR}/rc.d/init.d
  +	ln -sf ../init.d/hotplug ${EXTDIR}/rc.d/rcsysinit.d/S55hotplug
  +
   install-modules: create-dirs
   	install -m 754 contrib/init.d/modules ${EXTDIR}/rc.d/init.d
   	install -m 644 contrib/sysconfig/modules ${EXTDIR}/rc.d/sysconfig
  -	ln -sf  ../init.d/modules ${EXTDIR}/rc.d/rcsysinit.d/S15modules
  +	ln -sf ../init.d/modules ${EXTDIR}/rc.d/rcsysinit.d/S57modules
   
  -.PHONY: all create-dirs create-service-dir install install-modules
  +.PHONY: all create-dirs create-service-dir install install-hotplug install-modules
  
  
  
  1.1                  LFS/bootscripts/contrib/init.d/hotplug
  
  Index: hotplug
  ===================================================================
  #!/bin/sh
  # Begin $rc_base/init.d/hotplug - Load modules for system devices
  
  # Written by Zack Winkles - winkie at linuxfromscratch.org
  
  . /etc/sysconfig/rc
  . $rc_functions
  
  # Assure that hotplug is actually present.
  [ -x /sbin/hotplug ] || exit 0
  
  case "$1" in
  	start|restart|status)
  		echo "Loading modules for system devices..."
  		for rc in /etc/hotplug/*.rc; do
  			$rc $1
  		done
  		print_status success
  		;;
  	stop)
  		echo "Unloading modules for system devices..."
  		for rc in /etc/hotplug/*.rc; do
  			$rc $1
  		done
  		print_status success
  		;;
  	*)
  		echo "Usage: $0 {start|stop|restart|status}"
  		exit 1
  		;;
  esac
  
  # End $rc_base/init.d/hotplug
  
  
  



More information about the lfs-book mailing list