ChangeLog 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066
  1. 2012-05-30 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  2. * Copy all entries in /lib/udev/devices to /dev in mounvirtfs
  3. 2012-05-24 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  4. * Remove mkdir from mountvirtfs because fs is read only
  5. 2012-04-09 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  6. * General update of network scripts ifup/ifdown and services
  7. ** Add if_true utility function to init_functions
  8. ** Change variable INTERFACES to COMPONENT_INTERFACES for bridge interface
  9. ** ifdown now only uses the first SERVICE
  10. ** Updated ifup.8 to reflect current usage
  11. ** ifup
  12. *** Move interface up logic to after service scripts. Eliminates the
  13. need for the LINK_CHECK variable.
  14. *** Sets the GATEWAY if the variable is set
  15. *** Add MTU logic to ifup
  16. 2012-01-22 Matt Burgess <matthew@linuxfromscratch.org>
  17. * lfs/init.d/udev: Change udevd path following upstream changes to its
  18. location
  19. 2011-12-23 Matt Burgess <matthew@linuxfromscratch.org>
  20. * lfs/init.d/mountvirtfs: Correct permissions on /run/shm
  21. 2011-11-28 DJ Lucas <dj@linuxfromscratch.org>
  22. * lfs/init.d/mountfs: Add '-t nosysfs' to umount command
  23. * lfs/init.d/mountvirtfs: remove unneeded spaces in output
  24. * lfs/init.d/rc: Correct double interactive prompt and set prompt defaults
  25. * lfs/init.d/setclock: Remove screen output from start case (udev)
  26. * lfs/init.d/udev{,_retry}: Restore output to screen and log
  27. * lfs/sbin/ifup: Change "..." to ": " (not awaiting additonal output)
  28. 2011-11-14 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  29. * The following are from suggestions by DJ Lucas
  30. ** General cleanup of scripts
  31. ** Move consolelog function to rc
  32. ** Clean up boot logging functions
  33. ** Fix interactive prompt between run level S and target run level
  34. 2011-10-06 Bryan Kadzban <bryan@linuxfromscratch.org>
  35. * Add configuration for udev_retry, and remove --type=failed (which does
  36. not work with recent udev versions anyway, since no events can possibly
  37. trigger it). Start with just the "rtc" subsystem. BLFS should eventually
  38. add "sound" to this file, and perhaps others.
  39. 2011-09-18
  40. * Review and update of changes made in previous change.
  41. ** Rename /etc/sysconfig/init_params to /etc/sysconfig/rc.site.
  42. ** Move network services to /lib/services.
  43. ** Move init-functions to /lib/lsb.
  44. *** /lib/lsb is a symlink to /lib/services.
  45. * Create convenience symlink /etc/init.d->/etc/rc.d/init.d.
  46. * Add help and man pages to upup/ifdown.
  47. * Append /run/var/bootlog to /var/log/boot.log at the end of
  48. the boot sequence.
  49. * Add capabiltiy to step through the boot scripts at boot time
  50. * Optionally allow environment variables in sysconfig directory's
  51. console, network, and clock files to be placed in rc.site.
  52. * Add an optional FASTBOOT parameter to set /fastboot when rebooting.
  53. 2011-07-14 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  54. * Major rewrite of all LFS scripts
  55. ** Move ifup/ifdown to /sbin
  56. ** Move functions and network services to /lib/boot
  57. ** Remove contrib directory
  58. ** Move all READ commands to functions and allow the user to specify
  59. HEADLESS=1 to skip READ commands
  60. ** Add /etc/sysconfig/init_params for adding environmental parameters
  61. to all functions used in bootscripts
  62. ** Move network configuration to /etc/sysconfig/ifconfig.*. The
  63. ifconfig files can have any extention. Use IFACE parameter to
  64. specify the target network interface within the configuration file.
  65. ** Adds an optional parameter, SKIPTMPCLEAN, to skip the removal of
  66. files in /tmp at bootup. Specify the variable in
  67. /etc/sysconfig/init_params.
  68. 2011-05-31 DJ Lucas <dj@linuxfromscratch.org>
  69. * lfs/init.d/udev: Add multiple udev triggers for both subsystems and
  70. devices per upstream recommendation.
  71. 2011-04-19 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  72. * lfs/init.d/mountvirtfs: Add creation of /run/{var,lock,shm}.
  73. * lfs/init.d/udev: Add /dev/shm -> /run/shm symlink.
  74. 2011-04-18 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  75. * lfs/init.d/mountvirtfs: Change name from mountkernfs to mountvirtfs.
  76. Add mounting of /run filesystem.
  77. 2010-05-29 Matt Burgess <matthew@linuxfromscratch.org>
  78. * lfs/init.d/udev: Only copy /lib/udev/devices/null, as Udev >= 155 copies
  79. devices from /lib/udev/devices to /dev itself. Udevd still needs /dev/null
  80. present before starting up though.
  81. 2010-04-20 Bryan Kadzban <bryan@linuxfromscratch.org>
  82. * lfs/init.d/udev, lfs/init.d/udev_retry: Add --action=add, to handle udev
  83. version 152 and newer, which send "change" events by default in udevtrigger
  84. now.
  85. 2010-01-24 Matthew Burgess <matthew@linuxfromscratch.org>
  86. * lfs/init.d/udev: Check to see if /dev is already mounted, as it may be if
  87. under an initramfs environment. See ticket #2550.
  88. 2009-08-14 Bryan Kadzban <bryan@linuxfromscratch.org>
  89. * lfs/init.d/udev_retry: Use "udevadm trigger --type=failed", which
  90. apparently replaced "--retry-failed" some time ago. "--retry-failed" is
  91. removed in udev-146.
  92. 2009-01-02 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  93. * lfs/init.d/functions:
  94. * lfs/sysconfig/network-devices/ifup:
  95. Updated line widths to accomodate pdf generation in both the above
  96. files.
  97. 2008-10-27 DJ Lucas <dj@linuxfromscratch.org>
  98. * lfs/init.d/cleanfs: Removed '! -newer /proc' from find commands in
  99. check for stale files in /var/lock and /var/run.
  100. * Makefile: Reversed cleanfs and udev_retry scripts so that cleanfs
  101. runs immediately after mountfs.
  102. 2008-10-26 Dan Nicholson <dnicholson@linuxfromscratch.org>
  103. * lfs/init.d/functions: Remove stale pid files when encountered
  104. in loadproc/killproc/reloadproc. When the bootscript specifies
  105. a pid file to use with the "-p pidfile" argument, *proc
  106. functions previously bailed out when the referenced file
  107. contains an invalid pid.
  108. 2008-10-23 DJ Lucas <dj@linuxfromscratch.org>
  109. * lfs/init.d/console: Removed BROKEN_COMPOSE as kernel patch has
  110. been accepted upstream.
  111. 2008-05-21 Bryan Kadzban <bryan@linuxfromscratch.org>
  112. * lfs/init.d/udev, lfs/init.d/udev_retry: Use new udevadm program.
  113. 2007-08-20 DJ Lucas <dj@linuxfromscratch.org>
  114. * lfs/init.d/setclock: Added missing 'stop' argument to usage text
  115. 2007-08-13 Dan Nicholson <dnicholson@linuxfromscratch.org>
  116. * lfs/init.d/checkfs: Don't suppress error messages from the screen.
  117. 2007-07-18 Dan Nicholson <dnicholson@linuxfromscratch.org>
  118. * Makefile, lfs/init.d/consolelog: New bootscript controlling the
  119. kernel log level on the console. This is controlled by the LOGLEVEL
  120. variable in /etc/sysconfig/console.
  121. * lfs/init.d/modules: Remove the log level handling since this is
  122. done in the consolelog script now.
  123. * lfs/init.d/modules: Clean up the script by removing the file
  124. descriptor duplication and instead just redirecting
  125. /etc/sysconfig/modules to the input of the while loop.
  126. 2007-06-16 Dan Nicholson <dnicholson@linuxfromscratch.org>
  127. * lfs/init.d/mountfs, lfs/init.d/mountkernfs, lfs/init.d/setclock,
  128. lfs/init.d/modules, lfs/sysconfig/network-devices/if{up,down}:
  129. Don't suppress stderr during bootscripts unless necessary. This
  130. would prevent potentially critical messages from reaching the screen.
  131. 2007-04-24 Dan Nicholson <dnicholson@linuxfromscratch.org>
  132. * lfs/init.d/functions: When killproc is executed, it checks that
  133. the process is still running, sleeps if it is, then checks again.
  134. The sleep is 1 second in between checks. By sleeping for 0.1 seconds
  135. in between checks, killproc is much faster as it's wasting much
  136. less time sleeping in the normal case that the process has died
  137. after a short delay.
  138. 2007-04-16 Dan Nicholson <dnicholson@linuxfromscratch.org>
  139. * lfs/init.d/functions: Redirect stderr when using kill to suppress
  140. output.
  141. * lfs/init.d/functions: killproc() was not handling the case where a
  142. pidfile is passed to the function. The logic with the signal to be
  143. used was causing issues with the handling of pidfiles. This has been
  144. fixes, and now killproc() will recheck the process if the signal
  145. was TERM (the default) or KILL.
  146. * lfs/init.d/functions: statusproc() has been changed to use pidofproc()
  147. instead of the deprecated getpids(). Additionally, it now accepts
  148. the -p argument to specify a pidfile.
  149. * lfs/init.d/functions: Currently, statusproc() always returns
  150. successfully, and the only way to know if the process is running
  151. is to parse the output. This changes statusproc() to return the
  152. status of pidofproc(), which will return unsuccessfully if the
  153. requested process is not running.
  154. * lfs/init.d/functions: Changed reloadproc() to use pidofproc() and
  155. respect the -p argument for pidfiles.
  156. * lfs/init.d/sysklogd: Remove a useless argument to reloadproc().
  157. 2007-03-13 Dan Nicholson <dnicholson@linuxfromscratch.org>
  158. * lfs/init.d/functions: If pidofproc() is passed the -p argument
  159. it can bomb testing a null variable with an integer expression.
  160. 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
  161. * lfs/init.d/mountfs, lfs/init.d/console, lfs/init.d/setclock,
  162. lfs/init.d/mountkernfs: &> redirection is not supported in POSIX.
  163. Fortunately, it's equivalent to >word 2>&1 according to bash(1).
  164. 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
  165. * lfs/init.d/console: POSIX says that shells only need to trap on
  166. signals. Trapping on ERR isn't always supported. Conditionals have
  167. been added to set the $failed variable in spots that seemed
  168. appropriate for checking errors.
  169. 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
  170. * lfs/init.d/functions: Use arithmetic expansion and string length,
  171. which are both mandated by POSIX, rather than spawning two processes
  172. every time boot_mesg() is called.
  173. 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
  174. * lfs/init.d/functions: In order to provide an `echo' which provides
  175. handles the -e and -n options for all POSIX shells, a feature test
  176. is added which stores its result in $ECHO. /bin/echo will be used
  177. if the default echo is not capable. Changed the existing functions
  178. to reference $ECHO when needed.
  179. * lfs/init.d/console: Use $ECHO when -en is needed.
  180. 2007-02-03 Bryan Kadzban <bryan@linuxfromscratch.org>
  181. * ChangeLog: Rename from CHANGELOG, start using GNU style entries.
  182. * Makefile: Move setclock before checkfs. Fixes #1948.
  183. 2006-11-25 Bryan Kadzban <bryan@linuxfromscratch.org>
  184. * lfs/init.d/udev_retry: Copy Debian's "copy generated rules" initscript
  185. code, to clean up when the rule_generator scripts run before / is
  186. writable. (Since the rule_generator code is from Debian, I assume their
  187. cleanup code is appropriate.)
  188. 2006-10-15 Bryan Kadzban <bryan@linuxfromscratch.org>
  189. * lfs/init.d/udev_retry: Fix to work with udev >= 099.
  190. n/a - June 2, 2006
  191. * Removed console config file and makefile targets.
  192. * Removed references to /dev/bug and bugreport in udevand
  193. udev_retry bootscripts. (DJ Lucas)
  194. n/a - April 17, 2006
  195. * Updated udev script to use the new udevsettle program.
  196. * Added udev_retry script for systems that have /usr on a different
  197. partition or for some other reason fail the initial replay. (Archaic)
  198. n/a - April 15, 2006
  199. * Cleaned up contrib directory. Removed: contrib/init.d,
  200. contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2
  201. patch. (DJ Lucas)
  202. n/a - April 14, 2006
  203. * Merged changes from udev_update branch (DJ Lucas)
  204. * Replaced a return with an exit and reversed comment changes in
  205. udev bootscript. (Dan Nicholson)
  206. * Replaced walk_sysfs function in udev bootscript with new udevtrigger
  207. program and move wait_for_uevents function inline. (DJ Lucas)
  208. * Removed extra evaluate_retval in udev bootscript. (Ken Moffat)
  209. * Wait for uevents to be processed in the udev script. See ticket
  210. #1720 for details. (Matthew Burgess)
  211. n/a - March 21, 2006
  212. * Removed old references to boot_log function and arguments passed
  213. to boot_mesg_flush in echo_* functions. (DJ Lucas)
  214. n/a - March 10, 2006
  215. * Moved src argument to ipv4-static-route service script and
  216. removed from ipv4-static service script. (DJ Lucas)
  217. n/a - March 8. 2006
  218. * Correct sourced path in checkfs script. (Matthew Burgess)
  219. n/a - December 31, 2005
  220. * Replaced /etc/rc.d with ${rc_base} in checkfs. (Vincent Fretin)
  221. n/a - December 24, 2005
  222. * Added UTF-8 support to console script. (Alexander E. Patrakov)
  223. n/a - September 11, 2005
  224. * Removed text wraping and boot logging.
  225. * Changed killproc to use warning if not running
  226. * Changed 'print_status warning' to use old style output
  227. * Fixed display error with LSB init-functions script
  228. * Made above killproc/print_status changes in enhanced
  229. bootscripts.
  230. * Made logger service configurable in enhanced
  231. bootscripts. (DJ Lucas)
  232. n/a - August 14, 2005
  233. * Added -s flag to pidofproc() for backwards
  234. compatibility (DJ Lucas)
  235. * Fixed erronous values returned by pidofproc() which
  236. broke the functionality of statusproc (DJ Lucas)
  237. n/a - July 1, 2005
  238. * Changed a == to a = in lfs/init.d/functions, in the boot_mesg
  239. function for ash compliancy (Nathan Coulson)
  240. n/a - June 26, 2005
  241. * Removed consolelog script from contrib
  242. * Updated interactive rc script in contrib and added
  243. README.rc-Interactive, added install target to the
  244. Makefile. (DJ Lucas)
  245. 3.2.2 - May 29, 2005
  246. * Tagged as 3.2.2 (Nathan Coulson)
  247. n/a - May 26, 2005
  248. * Added minimal target for cross-lfs book (Jim Gifford)
  249. * Fixed raq2 patch (Jim Gifford)
  250. 3.2.1 - May 1, 2005
  251. * Tagged as 3.2.1 (Nathan Coulson)
  252. n/a - April 17, 2005
  253. * removed touch from hotplug bootscript (Matthew Burgess)
  254. * moved commands around in localnet bootscript (Andrew Benton)
  255. 3.2.0 - March 30, 2005
  256. * Changed from syslog-ng to sysklogd (Archaic)
  257. * Temporairly changed loadproc to return 0 if the program is
  258. already running (Nathan Coulson)
  259. * Fixed (by reverting) ifup/ifdown/network (Nathan Coulson),
  260. Reported by Jim Gifford
  261. * Fixed network up/down along with adding support of ONHOTPLUG
  262. * Tagged as 3.2.0
  263. n/a - March 19, 2005
  264. * Updated RaQ2 patch (Jim Gifford)
  265. * Added net.agent for Hotplug of Network adapters in contrib
  266. (Jim Gifford)
  267. n/a - March 16, 2005
  268. * Reverted the change from loadproc to start_daemon,
  269. Moved compatibility code into one single function.
  270. (Nathan Coulson)
  271. * Readded the ONHOTPLUG option for ifup/ifdown (Nathan Coulson)
  272. * Fixed killproc's output
  273. n/a - March 01, 2005
  274. * Added CHECK_LINK variable in ifconfig.*/*, so if the
  275. interface does not exist, it will not fail.
  276. (Nathan Coulson)
  277. n/a - February 19, 2005
  278. * Added evaluate_retval to the end of loadproc and killproc.
  279. lsb does not say that killproc should print [ OK ],
  280. but required for compatibility. (Nathan Coulson)
  281. n/a - February 9, 2005
  282. * Accidently mounted /dev with 775 instead of 755, fixed
  283. (Reported by Alexander E. Patrakov)
  284. n/a - February 9, 2005
  285. * Bugfix for /dev, now mounted with 755 permission
  286. n/a - February 8, 2005
  287. * changed pidof, so it doesnt check the process id
  288. of running bootscripts, and to process shell scripts
  289. (Nathan Coulson)
  290. n/a - February 6, 2005
  291. * Updated main functions file with lsb functions file
  292. Should now be LSB compliant (Nathan Coulson)
  293. n/a - January 10, 2005
  294. * Moved ONBOOT check back to network (Nathan Coulson)
  295. * Removed ONHOTPLUG check (Nathan Coulson)
  296. n/a - January 6, 2005
  297. * fixed mountkernfs output (Nathan Coulson)
  298. * reverted mountfs fakemounting (Nathan Coulson)
  299. n/a - January 5, 2005
  300. * Attempted to simplify network bootup files (Nathan Coulson)
  301. * Modified mountkernfs to use mountpoint (Nathan Coulson)
  302. * Assuming sysfs is always mounted (Nathan Coulson)
  303. * Moved fakemount to below mounting (Nathan Coulson)
  304. * Removed -t noramfs from umount, as we now use tmpfs (Nathan Coulson)
  305. * moved sysctl from mountkernfs to sysctl (Nathan Coulson)
  306. * Added -q to sysctl (Nathan Coulson)
  307. n/a - January 2, 2005
  308. * Fixed statusproc output. (DJ Lucas)
  309. 3.1.0 - December 31, 2004
  310. * fixed textoutput
  311. * Tagged as 3.1.0
  312. n/a - December 30, 2004
  313. * Fixed name of LSB Functions file
  314. * Changed boot_mesg to act like echo instead of echo -n, boot_mesg now
  315. takes the -n argument if you do not wish to goto the next line
  316. 3.0.1 - December 25, 2004
  317. * Released as 3.0.1
  318. n/a - December 20, 2004
  319. * Cleaned up header.
  320. * Added RaQ2 Patch
  321. n/a - December 16, 2004
  322. * Fixed a text typo in udev, tmpfs instead of ramfs (Steve Crosby)
  323. n/a - December 14, 2004
  324. * Fixed a warning with find in cleanfs
  325. 3.0 - December 8, 2004
  326. n/a - December 5, 2004
  327. * Moved bootlog to use local2 service to avoide conflict with
  328. dhcpcd (DJ Lucas)
  329. 3.0-rc1 - December 1, 2004
  330. * rc-Interactive added (DJ Lucas)
  331. * rc-Interactive moved to contrib (Nathan Coulson)
  332. n/a - November 27, 2004
  333. * Moved bootlog to use local1 to avoid conflict with ppd (DJ Lucas)
  334. n/a - November 25, 2004
  335. * Added consolelog to contrib/sysconfig (DJ Lucas)
  336. * Rewrite of line wraping in boot_mesg and various fixes
  337. related to boot_mesg changes (DJ Lucas, Alexander Patrakov)
  338. * syslog-ng is now installed by default (Jeremy Utley)
  339. * hotplug is now installed by default (Jeremy Utley)
  340. * udev now uses /sbin/hotplug as the default hotplug handler
  341. (Nathan Coulson)
  342. * udev now mounts a tmpfs instead of a ramfs onto /dev,
  343. as suggested by Greg K-H (Nathan Coulson)
  344. * Created contrib/lsb, and added a LSB compliant functions file
  345. (Nathan Coulson, and Alexander Patrakov)
  346. * Modified find [requires find 4.2.3+] (Matthew Burgess)
  347. n/a - November 20, 2004
  348. * Modifed modules script to return to previous kernel message
  349. level (DJ Lucas)
  350. n/a - November 02, 2004
  351. * Added sysctl -p to mountkernfs (Matthew Burgess, DJ Lucas)
  352. n/a - October 07, 2004
  353. * statusproc modified not to send data to bootlog (Nathan Coulson)
  354. * Fixed halt commands in checkfs and udev (James Robertson)
  355. n/a - October 04, 2004
  356. * Fixes to commit on 2004/09/30 (James Robertson)
  357. * Revert a few changes until later (Nathan Coulson)
  358. * Added a warning about switching from a 8bit font
  359. to a 9bit font (Alexander Patrakov)
  360. n/a - September 30, 2004
  361. * Finished off boot_mesg() (James Robertson)
  362. * Standardized all scripts to same variable format and other
  363. internal sh/bash function calls (James Robertson)
  364. * Fully implemented boot_mesg across all scripts in sysconfig
  365. and init.d (James Robertson)
  366. n/a - September 26, 2004
  367. * Added BOOTMESG_PREFIX variable, so users can optionally set a
  368. prefix for boot messages (James Robertson)
  369. * Fixed localnet status, to use ip instead of ifconfig (Jim Gifford)
  370. * Added consolelog to contrib (DJ Lucas)
  371. * loadproc and killproc can have the -nomsg parameter to avoid
  372. calling evaluate_retval or print_status (Jim Gifford)
  373. * boot_mesg no longer explicitly adds a \n onto end of lines
  374. * Added a function called boot_mesg_flush, which can
  375. dump the BOOTMESG to the bootlog. This helps avoid making
  376. everything have to end in OK/WARN/FAIL (Nathan Coulson)
  377. n/a - September 24, 2004
  378. * Removed /dev/udev.tdb test
  379. n/a - September 23, 2004
  380. * Fixed boot_log so it output's $@'s contents, not @$
  381. * Added support for colors in boot_mesg (James Robertson)
  382. * Modified udev's error checking
  383. * Modified hotplug's error checking
  384. * Converted checkfs's error handling to use boot_mesg with
  385. color support
  386. * Added $INFO color to functions (James Robertson)
  387. n/a - September 22, 2004
  388. * Removed the dependency on wl by replacing it with grep (Bryan Kadzban)
  389. * Fixed getpids, to remove unused pids obtained from $PIDFILE
  390. * Removed ${NORMAL} from echo "$BOOTMESG" in functions, and removed
  391. space added to each additional sentence tacked onto BOOTMESG
  392. * boot_mesg now handles \n's properly, and does not dimish the size of
  393. the next line (James Robertson)
  394. * boot_log has been added. The echo_ functions commit the log,
  395. and then clear the BOOTMSG variable
  396. * All scriptes have been converted to use boot_mesg
  397. n/a - September 21, 2004
  398. * boot_mesg has been enhanced. Subsequent calls will overwrite
  399. previous text, and it will wrap text basedupon the variable ${WCOL}.
  400. (James Robertson)
  401. * Fixed mtu optional service typo (Kevin P Fleming)
  402. * Added SOURCE variable to ipv4-static-route (Kevin P Fleming)
  403. n/a - September 16, 2004
  404. * nework interfaces are now brought down in reverse order
  405. n/a - September 15, 2004
  406. * Added blue bracket, from dj's 3.0-pre1 bootscript package
  407. [echo_failure, echo_warning, and echo_ok]
  408. * Added a new function called boot_mesg, meant to replace the echo
  409. command.
  410. This will give us the posibility of doing logging at a later date
  411. * Do not set COLUMNS if COLUMNS is already set
  412. * Modified getpids, loadproc, killproc, reloadproc, and statusproc as
  413. done by DJ
  414. 2.2.3 - September 04, 2004
  415. * Tagged as 2.2.3
  416. n/a - September 04, 2004
  417. * Added new script to contrib for syslog-ng, which is now part of
  418. LFS-Unstable, and a new Makefile target install-syslog-ng which
  419. removes the sysklogd links, and replaces them with syslog-ng (JU)
  420. 2.2.2 - August 11, 2004
  421. * Tagged as 2.2.2
  422. n/a - August 7, 2004
  423. * Added missing error redirect (/dev/null) in getpids. (DJ)
  424. n/a - August 4, 2004
  425. * Added MODE, DIRMODE, and CONFMODE variables to the makefile
  426. to allow permissions to be set at install. (DJ)
  427. n/a - July 31, 2004
  428. * Moved PIDFILE check to getpids and removed arguments from
  429. killproc and reloadproc. Signals are now set at begining of
  430. funtcions script with KILLDELAY. (DJ)
  431. * Added a optional service script which can set the MTU for a given
  432. interface
  433. n/a - July 21, 2004
  434. * Committed DJ Lucas's patch for the killproc function. It no
  435. longer requires arguments if PIDFILE is set
  436. * added --backup to all sysconfig configuration files, so they are not
  437. replaced on a make install
  438. n/a - July 13, 2004
  439. * Added the PEER variable to the ifconfig.*/* file, done by
  440. Kevin P. Fleming
  441. 2.2.1 - July 12, 2004
  442. * Tagged as 2.2.1
  443. n/a - July 12, 2004
  444. * Hotplug was moved from rcsysinit.d to rc{1,2,3,4,5} to help bring
  445. up/down network interfaces started by hotplug. This has been revoked
  446. at this time
  447. * Networking interfaces are now brought down in reverse order
  448. * Moved the ONBOOT check to within ifup/ifdown, so we can bring up/down
  449. the interfaces at boottime/shutdown properly, done by Kevin P. Fleming
  450. * Use PREFIX instead of NETMASK for adding addresses in ipv4-static,
  451. done by Kevin P. Fleming
  452. * Fix reversal of services inside ifconfig.* directories in ifdown,
  453. done by Kevin P. Fleming
  454. * Add ipv4-static-route service, supplied by Kevin P. Fleming
  455. 2.2.0 - July 12, 2004
  456. * Tagged as 2.2.0
  457. n/a - July 11, 2004
  458. * Minor script output changes
  459. * Repaired networking scripts broken in previous commits
  460. n/a - July 10, 2004
  461. * We now use the ip program [from iproute2] instead of ipconfig
  462. [net-tools] to bring up/down ethernet interfaces, and local
  463. connections, submitted by Jim Gifford
  464. * Removed gateway backward compatibility
  465. * Removed ifup-eth0 ifdown-eth0 compatibility
  466. * Removed the "assume SERVICE=static if SERVICE is unset" compatibility
  467. * Pass the IFCONFIG environmental variable to services, so they can
  468. locate the file with the parameters they must read
  469. * Rename static to ipv4-static
  470. * Stage1 for network configuration via directories, ifup and ifdown
  471. modified, and the static service modified
  472. * Stage2 for network configuration via directories complete, network was
  473. modified to check within subdirectories for ONBOOT=yes. Final Stage
  474. n/a - July 8, 2004
  475. * Changed iso01 to lat1 everywhere in /etc/sysconfig/console. This
  476. fixes the problem with line-drawing characters.
  477. n/a - July 7, 2004
  478. * Halted the computer, if unable to mount /dev as a ramfs
  479. n/a - July 6, 2004
  480. * Moved the hotplug bootscript back to contrib, it will not be used in
  481. the testing branch of the lfs book at this time
  482. n/a - July 4, 2004
  483. * Modified ifup and ifdown to be hotplug aware
  484. n/a - July 3, 2004
  485. * Change the check for ONBOOT into a source within a subshell
  486. n/a - July 1, 2004
  487. * Moved hotplug start to runlevels 3-5 from sysinit
  488. n/a - June 30, 2004
  489. * Pass -depth in cleanfs
  490. n/a - June 29, 2004
  491. * Made the grep for ONBOOT in the network script more exact
  492. 2.1.2 - June 27, 2004
  493. * Install the automatic module loading script by default
  494. * Tagged as 2.1.2
  495. n/a - June 26, 2004
  496. * Fixed font for UK in /etc/sysconfig/console
  497. n/a - June 23, 2004
  498. * Fixed a typo in the hotplug installation procedure
  499. n/a - June 21, 2004
  500. * Re-ordered the "mount" and "echo" commands in the udev script, to
  501. prevent a possible race
  502. * Converted the udev script to use udevsend/udevd
  503. * Moved removal of /fastboot and /forcefsck to just after the root fs
  504. becomes writable, and dropped the removal of /etc/nologin
  505. * Cleaned and tweaked both the output and actions of cleanfs
  506. * Removed the disabling of hotplug from sendsignals
  507. * Removed anything that might call "rmmod" in hotplug, since rmmod is
  508. notoriously troublesome in the 2.6.x kernels, and call it with the
  509. stop argument from runlevels 0 and 6
  510. * Fixed previous modifications to the udev and cleanfs scripts
  511. n/a - June 20, 2004
  512. * Rolled back to the /dev/.udev.tdb check from 2.1.1, since the new
  513. one doesn't work as well, and the bug that caused it to change is
  514. now fixed
  515. n/a - June 18, 2004
  516. * Updated sysconfig/console
  517. * Fixed disabling hotplug in sendsignals
  518. * hotplug is now installed by default
  519. n/a - June 15, 2004
  520. * Reset /proc/sys/kernel/hotplug to /bin/true when running the "stop"
  521. command for hotplug
  522. * Cleaned the output of the mountkernfs script
  523. * Don't output "Creating files and directories" when it's a lie
  524. n/a - June 8, 2004
  525. * Changed the location the optional module script is installed to
  526. /etc/rc.d/rcsysinit.d/S05modules.
  527. n/a - June 4, 2004
  528. * Added a echo to the > /proc/sys/kernel/hotplug line, as > did not
  529. clear it
  530. n/a - June 3, 2004
  531. * Added '> /proc/sys/kernel/hotplug' to sendsignals, to disable hotplug
  532. events, which may start up new daemons
  533. * Added elementry bootup logging support. If it can write to
  534. /var/log/boot.log, it will
  535. * Removed logging support, it kept / from being remounted ro
  536. n/a - June 2, 2004
  537. * Reorganize what goes on in the udev script
  538. * Reorganize what goes on in the hotplug script
  539. * Moved setting /sbin/hotplug as the default hotplug manager into the
  540. hotplug script
  541. n/a - June 1, 2004
  542. * Removed usbfs from mountkernfs, and mountfs
  543. * Edited the udev script, so it'll always set /proc/sys/kernel/hotplug
  544. n/a - May 24, 2004
  545. * Added more example keymaps and font settings to /etc/sysconfig/console
  546. * Install the /etc/sysconfig/console file by default
  547. n/a - May 23, 2004
  548. * Changed the symlink for the optional modules script
  549. * Removed depmod from the optional modules script
  550. n/a - May 20, 2004
  551. * Removed the random script. There is not a strong enough case for
  552. adding it to the lfs-bootscripts.
  553. n/a - May 19, 2004
  554. * Added the random bootscript from blfs-bootscripts
  555. 2.1.1 - May 18, 2004
  556. * Fixed installation of modules configuration
  557. * Tagged as 2.1.1
  558. n/a - May 16, 2004
  559. * Added sysklogd configuration file
  560. * Added example /etc/sysconfig/console file
  561. * Do not attempt to populate /dev if that directory has already been
  562. set up earlier in bootup (such as on initramfs/initrd)
  563. * Prevent excessive kernel output once klogd starts
  564. * Added hotplug script
  565. n/a - May 15, 2004
  566. * Namespace rework (enumeration of scripts is now cleaner)
  567. * Removed directories: blfs, contrib/new-boot-0.2, contrib/rlv
  568. n/a - May 13, 2004
  569. * Repaired the console script
  570. * Added a check to cleanfs [createfiles], to make sure that we have
  571. a valid devicetype, if we have type=dev
  572. n/a - May 11, 2004
  573. * Added usbfs to mountkernfs and mountfs
  574. n/a - May 6, 2004
  575. * Don't use loadproc in localnet, it's not meant for that
  576. * Quote tests of $PIDFILE, so that things behave when it's empty
  577. * Removed unused kill -0 from killproc
  578. 2.1.0 - May 4, 2004
  579. * Update to the console script, prevent install of the console script
  580. * Chgrp /var/run/utmp to group utmp if it exists.
  581. * Moved udev from contrib to lfs
  582. * Moved GATEWAY setup from /etc/rc.d/init.d/network to
  583. /etc/sysconfig/network-devices/services/static
  584. * Use the contents of $PIDFILE, if it is set in the script
  585. * Tagged as 2.1.0.
  586. n/a - April 30, 2004
  587. * Moved the loadkeys script to console, and added setfont. Contributed
  588. by Alexander E. Patrakov
  589. 2.0.5 - April 29, 2004
  590. * Added the heimdal init script.
  591. * Tagged as 2.0.5
  592. 2.0.4 - April 27, 2004
  593. * Tagged as 2.0.4
  594. n/a - April 24, 2004
  595. * Added a example script for /etc/sysconfig/createfiles
  596. * Added a check for /sys before mounting sysfs
  597. * Added -t noramfs to umount on /etc/rc.d/init.d/mountfs.
  598. This will prevent /dev from being unmounted, if /proc/mounts
  599. is symlinked to /etc/mtab
  600. n/a - April 18, 2004
  601. * Small fix to a if statement in netfs
  602. n/a - April 17, 2004
  603. * Added the lisa bootscript, lisa is part of the KDE Network package
  604. * Add proper error checking to the mountfs script when writing out mtab
  605. * Add more comments to the udev script, and conditionalize various
  606. things that should've been done this way in the first place
  607. * Include a template module auto-loading configuration file instead of
  608. having syntax comments in the script itself
  609. n/a - April 12, 2004
  610. * Added a automatic modules loading script to the contrib directory
  611. submitted by Zack
  612. * Edited mountkernfs, so that if you can mount sysfs on /sys, it will
  613. be mounted at boottime. Should not affect 2.4 systems
  614. * Since all entries are added to /etc/mtab, we should not require
  615. the NO_FS variable. It has been removed from mountfs
  616. * Added the udev script into the contrib directory, submitted by Zack
  617. 2.0.3 - April 8, 2004
  618. * Updated cleanfs, so it can create devices. Supplied by Zack
  619. * Tagged as 2.0.3
  620. n/a - March 31, 2004
  621. * Changed "Press Enter" on unknown error to white
  622. * Moved S10swap to S20swap. When udev is added, it has to be
  623. ran before swap is setup
  624. n/a - March 29, 2004
  625. * Fixed the rc5.d symlink for ntp so it creates S26ntp instead
  626. of S26npt
  627. * Moved S20mountkernfs to S00mountkernfs in rcsysinit.d. Will help in
  628. the addition of udev in the future.
  629. n/a - March 27, 2004
  630. * Changed gdm path from hardcoded to program name. There are 2 spots
  631. gnome can be installed
  632. n/a - March 26, 2004
  633. * Updated fam daemon script. It now uses the famd daemon instead of fam
  634. n/a - March 24, 2004
  635. * Removed mount command out of nfs. the netfs script already handles
  636. this
  637. 2.0.2 - March 24, 2004
  638. * Edited cleanfs to solve a problem. [if /tmp does not exist, it
  639. could run the find command on the root filesystem]
  640. * Tagged as 2.0.2
  641. 2.0.1 - March 24, 2004
  642. * Found typo in BLFS MySQL Script.
  643. * Tagged as 2.0.1
  644. 2.0.0 - March 23, 2004
  645. * Tagged as 2.0.0, no changes from 2.0.0-pre2
  646. 2.0.0-pre2 - March 23, 2004
  647. * Cleaned the /tmp directory on bootup. find command supplied by Zack
  648. * Added a script which can automatically create files and directories
  649. on startup. [Handles files/directories, permissions, and user/group].
  650. Created by Zack
  651. * Added blfs/init.d/fam script
  652. * Tagged as 2.0.0-pre2
  653. n/a - March 20, 2004
  654. * Added create-service-dir target and removed from create-dirs
  655. * Changed service script install targets to use
  656. create-service-dir
  657. * Added check for dhcpcd service script for stale pid file
  658. Suggested by Jeremy
  659. * Added ifconfig to ipx service script for hosting device not up
  660. n/a - March 19, 2004
  661. * Added support for ETCDIR, and DESTDIR in the Makefile,
  662. compliments of Tushar
  663. * Renamed mountproc to mountkernfs
  664. * Updated the README file
  665. * Coloured the print_error_message in functions red
  666. * added stop to the setclock script
  667. * changed echo > to > in cleanfs, suggested by winkie
  668. * BLFS Scripts Added, collected by Zack
  669. * Edited killproc, so it checks for running pids, rather then
  670. the completion of the above kill command. Suggested by Zack
  671. * Added network services found in blfs, removed adsl. Submitted by
  672. DJ.
  673. 1.99.4 - March 17, 2004
  674. * Fixed one last halt line in checkfs script
  675. * Moved the directory structure around
  676. * Tagged as development release 1.99.4
  677. n/a - February 28, 2004
  678. * Added stty sane to the top of rc.d/init.d/rc. Hopefully, this will
  679. fix the problems
  680. * Also changed all instances of <ctrl-j> back to enter
  681. 1.99.3 - February 23, 2004
  682. * Tagged as development release 1.99.3
  683. n/a - February 19, 2004
  684. * Fixed checkfs script, so it will no longer continue to boot after a
  685. failure in the init.d/checkfs script. Tested with the help of Andre
  686. Müller. Fix suggested by Zack
  687. n/a - February 7, 2004
  688. * Added -s onto grep on network stop
  689. * Replaced a few more enter's with ctrl-j
  690. 1.99.2 - February 6, 2004
  691. * Added -s onto grep in network start
  692. * Tagged as development release 1.99.2
  693. n/a - February 4, 2004
  694. * Fixed $WARNING $NORMAL and $ERROR lines, broken by changes in
  695. functions
  696. * Changed above fixes to work with ash
  697. * Fixed checkfs symlink in Makefile
  698. * functions is no longer installed as executable
  699. * Added a check to checkfs, for errors above 16. These are caused by
  700. being unable to run fsck, either due to user input, or a unfunctional
  701. linux system
  702. 1.99.1 - February 2, 2004
  703. * Tagged as development release 1.99.1
  704. n/a - February 2, 2004:
  705. * Added -d to umount in mountfs.
  706. * Fixed network shutdown script
  707. * Fixed Makefile rc.6 to reboot
  708. * Added -s flag to grep command in rc.d/init.d/network -
  709. suppresses an error if no ifconfig.* files exist
  710. n/a - January 30, 2004:
  711. * Reorganized the network system to accept multiple services.
  712. * Ash Compliancy
  713. * Modified some scripts to follow template
  714. * Reorganized functions, based upon Ash Compliancy Patch
  715. * Added a sleep 5 to failure for evaulate_retval, and changed
  716. evaulate_retval to return true instead of false. Instead, a
  717. exit 1 will indicate the script terminated abnormally, causing
  718. your system to wait until you hit ctrl-J
  719. * Switched "Press enter to continue" to "Press <ctrl-j> to continue"
  720. * replaced 3 with $KILLDELAY in sendsignals
  721. * mountfs does not mount network filesystems [identified by _netdev
  722. in /etc/fstab]
  723. * removed unneded touch out of cleanfs
  724. n/a - January 30, 2004:
  725. * New maintainers for the lfs-bootscripts package are:
  726. Jeremy Utley (jeremy@linuxfromscratch.org)
  727. Nathan Coulson (nathan@linuxfromscratch.org)
  728. 1.11 - February 3rd, 2003:
  729. * /etc/mtab is now a real file and is handled correctly so there are
  730. no errors even when the machine has crashed.
  731. 1.10 - September 12th, 2002:
  732. * Fixed up checkfs to work with non-ext2 filesystems too (such as
  733. minix).
  734. 1.9 - April 5th, 2002:
  735. * reloadproc function had a missing '=' in the "failure 1" command (it
  736. should be failure=1)
  737. * When script exists with unexpected value, you have to hit "Enter" to
  738. continue, not just a random key as printed on the screen.
  739. * Moved K10sysklogd, K20sendsignals, K30mount and K40swap to
  740. K40sysklogd, K50sendsignals, K60mount, K70swap
  741. * Changed the #!/bin/sh lines to #!/bin/bash - /bin/sh may not be
  742. linked to bash but to some other shell of your choice. These scripts
  743. are written to work with bash, so you can't just run them when
  744. /bin/sh -> csh or ash or whatever else tickles your fancy. This
  745. change should fix that.
  746. 1.8 - March 14th, 2002:
  747. * Fixed the getpids function call so PPID's would be taken into account
  748. properly.
  749. * Added the 'contrib' directory with other people's bootscript
  750. implementations.
  751. 1.7 - March 10th, 2002:
  752. * Used code from Matthias Benkmann's simpleinit-msb @
  753. http://winterdrache.de/linux/newboot/index.html mainly for improved
  754. killproc function handling
  755. * When a requested process isn't running, or is already running, a
  756. warning "Not running" or "Already running" will be displayed. This
  757. was out of allignment due to a missing $CURS_UP
  758. * Removed "||exit" from ifup and ifdown scripts. They are useless.
  759. * Changed the loadkeys script to run "loadkeys -d" and removed the need
  760. for the /etc/sysconfig/keyboard file. The kbd patch fixes the
  761. "loadkeys -d" behaviour.
  762. 1.6 - February 26th, 2002:
  763. * replaced -o %PPID with -o $PPID throughout the functions script. This
  764. construct does what it's supposed to do (don't take PPID into account
  765. because this would fail if a running daemon and the bootscript have
  766. the same name).
  767. * added 'restart' to the swap script
  768. * instead of using 'echo -n' to supress newlines so the [ OK ] and
  769. related messages allign properly, substitute this with a single echo
  770. command that simply goes one line up before outputting anything. This
  771. also has the benefit that when programs have their own output (like
  772. swapon, fsck and loadkeys), there won't be an unwanted blank line
  773. between the program's output and the [ OK ] et all. messages.
  774. 1.5 - February 2nd, 2002:
  775. * added 'exit 1' to the statusproc function when there aren't enough
  776. parameters passed to it (such as the name of process to check for)
  777. 1.4 - February 2nd, 2002:
  778. * when /fastboot is detected and the message about it is printed,
  779. don't run 'exit 1' else the rc script will cause a [FAILED] to
  780. be printed which is undesired in this case.
  781. 1.3 - January 30th, 2002:
  782. * network script: changed default route detection by using the same
  783. method as used when starting the script: check if the GATEWAY
  784. variable is set
  785. * removed the emptying of /etc/mtab since it's a symlink to
  786. /proc/mounts now
  787. * added the mountproc script which mounts the proc system. This is done
  788. because we need proc mounted even before the mountfs script is ran
  789. (now that /etc/mtab is a symlink to /proc/mounts)
  790. * removed all absolute paths from command calls
  791. * added umask 022 and PATH="/bin:/usr/bin:/sbin:/usr/sbin" to the
  792. functions script. Every file now sources this so that umask and PATH
  793. are set correctly
  794. 1.2 - January 26th, 2002:
  795. * network script: detect if a default route is set before removing it