Changeset 8525
- Timestamp:
- 04/13/08 00:24:28 (8 months ago)
- Files:
-
- trunk/bootscripts/contrib/lsb-v3/Makefile (modified) (5 diffs)
- trunk/bootscripts/contrib/lsb-v3/README (modified) (4 diffs)
- trunk/bootscripts/contrib/lsb-v3/etc (added)
- trunk/bootscripts/contrib/lsb-v3/etc/lsb-config (added)
- trunk/bootscripts/contrib/lsb-v3/lsb/manage-functions (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bootscripts/contrib/lsb-v3/Makefile
r8523 r8525 19 19 install -d -m ${DIRMODE} ${EXTDIR}/sysconfig 20 20 install -d -m ${DIRMODE} ${DESTDIR}/lib/lsb 21 install -d -m ${DIRMODE} ${EXTDIR}/lsb/state 21 22 22 23 create-service-dir: … … 49 50 install -m ${CONFMODE} lsb/init-functions ${DESTDIR}/lib/lsb/ 50 51 install -m ${CONFMODE} lsb/manage-functions ${DESTDIR}/lib/lsb/ 52 install -m ${CONFMODE} etc/lsb-config ${EXTDIR}/lsb/ 51 53 ln -sf ../init.d/network ${EXTDIR}/rc0.d/K80network 52 54 ln -sf ../init.d/sysklogd ${EXTDIR}/rc0.d/K90sysklogd … … 94 96 install -m ${MODE} sysconfig/network-devices/services/ipv4-static-route ${EXTDIR}/sysconfig/network-devices/services/ 95 97 96 minimal: create-dirs create-service-dir 98 minimal: create-dirs create-service-dir create-boottemp-dir 97 99 install -m ${MODE} init.d/checkfs ${EXTDIR}/init.d/ 98 100 install -m ${MODE} init.d/cleanfs ${EXTDIR}/init.d/ … … 110 112 install -m ${CONFMODE} lsb/init-functions ${DESTDIR}/lib/lsb/ 111 113 install -m ${CONFMODE} lsb/manage-functions ${DESTDIR}/lib/lsb/ 114 install -m ${CONFMODE} etc/lsb-config ${EXTDIR}/lsb/ 112 115 ln -sf ../init.d/sendsignals ${EXTDIR}/rc0.d/S60sendsignals 113 116 ln -sf ../init.d/mountfs ${EXTDIR}/rc0.d/S70mountfs … … 127 130 if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} sysconfig/rc ${EXTDIR}/sysconfig/; fi 128 131 129 .PHONY: all create-dirs create-service-dir \132 .PHONY: all create-dirs create-service-dir create-boottemp-dir \ 130 133 install minimal 131 134 trunk/bootscripts/contrib/lsb-v3/README
r8477 r8525 2 2 3 3 The scripts contianed in this directory are a complete rewrite of the 4 boot scripts from LFS-6.1 (updated for LFS-SVN about 200 7-08-20). As is4 boot scripts from LFS-6.1 (updated for LFS-SVN about 2008-04-13). As is 5 5 usually the case with a rewrite, there have been many changes: 6 6 … … 20 20 popular flavor of these programs is written in Python, which, as you should 21 21 know, is not installed until BLFS. I began work on a bash implementation, 22 with the original intent to use GNU make to procees the generated config 23 file. I later decided to use bash directly, but got lost in tab stops and 24 have not yet had the time to correct for the change. The gerneral operation 25 of the scripts is correct, but parsing the generated temp file is broken ATM 26 due to the change from tab to space delimiter. Feel free to have a hack at 27 the incomplete scripts I've placed in my home directory on quantum. They 28 have been heavily commented, and don't actually do anything as they are not 29 yet working as expected. The organize_links script is the one that does all 30 of the magic voodoo for a complete reorder. Keep in mind that this script 31 would never be called if using only LFS/BLFS supplied scripts. 32 http://www.linuxfromscratch.org/~dj/lsb-scripts/ 22 and have provided the needed functions to parse the LSB headers in the 23 manage-functions script (insalled by default into /lib/lsb). Unfortunately, 24 I have yet to complete the actual install-initd and remove-initd scripts, 25 however, I do have an almost complete install-initd kept locally. I am 26 currently working on a separate script to completely rewrite the symlinks 27 should LFS default values not prove sufficient when working with scripts in 28 the wild. I have not included either here because they are not yet complete 29 or thoroughly tested, and due to the development process of lfs-bootscritps, 30 would be included in a release tarball. If you would like to assist with the 31 development of these scripts, or would even just like to see what I have so 32 far, please email me privately. Of course, feel free to write your own if you 33 do not like the manage-fucntions script (or bash). 33 34 34 35 Distribution Independent - this original goal for the LFS scripts has been … … 45 46 is inherited from rc's environment as opposed to being sourced everytime a 46 47 script is run. This results in a negledgable decrease in boot time, but 47 it is just better in principle, assuming I didn't break anything. For those 48 familiar with the previous versions, the 'stty sane' bit comes to mind, but 49 I haven't witnessed any dispaly amomolies, nor do I remember how to reproduce 50 the situation that caused us to move that into the functions file before. 48 it is just better in principle. 51 49 52 50 Boot Logging - The previous incarnation of the boot log didn't begin … … 75 73 LSB Functions - The previous lfs-bootscripts sourced a functions file 76 74 located at /etc/rc.d/init.d/functions. This file has been renamed 77 <distro>-functions to segregate it from the old. The name is configurable75 $distro-functions to segregate it from the old. The name is configurable 78 76 by the rc.site configuration file. Both old and new bootscripts can be 79 77 used simultaneously in a SYS-V setup (with proper symlinks in place). 80 LSB defined functions are used where possible, but the lfs-functions file78 LSB defined functions are used where possible, but the $distro-functions file 81 79 provides, easy to use wraper functions that 82 80 start/stop/reload/force-reload/restart programs, evaluate the numerical 83 81 LSB return values, and print status messages to the screen. Both LFS 84 82 functions and LSB functions are documented directly in the scritps located 85 at /etc/init.d/ lfs-functions and /lib/lsb/init-functions respectively.83 at /etc/init.d/$distro-functions and /lib/lsb/init-functions respectively. 86 84 87 85 Pretier - Yeah, I just couldn't handle all the grey text... By default, trunk/bootscripts/contrib/lsb-v3/lsb/manage-functions
r8523 r8525 2 2 # Begin /lib/lsb/manage-functions 3 3 4 # /lib/lsb/manage _functions contains the functions used by4 # /lib/lsb/manage-functions contains the functions used by 5 5 # /lib/lsb/install_initd and /lib/lsb/remove_initd as well as additional helper 6 6 # functions for use in programs that would provide functionality similar to 7 7 # the RedHat chkconfig utility, for instance. 8 8 9 ## Define rcbase for now 10 ## (this will go away when a config file is defined) 11 rcbase=/etc/init.d 9 # source the confif file 10 . /etc/lsb/lsb-config 12 11 13 12 # Define all arrays at script start to avoid scope issues … … 27 26 # Returns no value, but populates the variable ${scriptcount} # 28 27 # and the arrays ${scriptlist} and ${fullheaders} for use # 29 # with other functions in this script. # 28 # with other functions in this script. This function is # 29 # called unconditionally at the end of this scrip and is # 30 # provided as a function only for the case that it needs to # 31 # be called again after other operations. # 30 32 ############################################################################### 31 33 get_headers() … … 212 214 } 213 215 216 get_headers 217 214 218 # End /lib/lsb/manage-functions
