ChangeLog 37 KB

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