ChangeLog 37 KB

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