sorry for the crosspost but since it originated on -current maybe people interested in the rest of the discussion were there.
I introduced the sysctl to export some amount of information to be used by picobsd disks to tell whether you booted from floppy or atapi disk. In turn, this is useful (and used) if you want to update something on the boot media for the next boot. The file system mounted on / has no relation with the boot device, e.g. in the picobsd case you will have an md disk mounted on root. So, the proposed replacement is not helpful. Please do not nuke the sysctl unless you have a replacement that can work where it is supposed to work. And if someone wants to propose a replacement, please remember that "this compiles but i have not tested it" tells absolutely nothing on how appropriate is the proposed patch. thanks luigi On Mon, Feb 24, 2003 at 09:13:35PM +0100, Oliver Fromme wrote: > Simon L. Nielsen <[EMAIL PROTECTED]> wrote: > > PicoBSD does not necessarily have awk (actually most likely doesn't > > since awk is 'big'). cut could be used instead since it much smaller : > > > > mount | grep 'on / ' | cut -f 1 -d ' ' > > > > Perhaps somebody has a better way? > > Does PicoBSD have sed? If it does: > > mount | sed -n 's/^\([^ ]*\) on \/ .*/\1/p' > > Doesn't win a beauty contest, but saves one exec. > (It could be done with ed, too, if there's no sed.) > > Regards > Oliver > > -- > Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München > Any opinions expressed in this message may be personal to the author > and may not necessarily reflect the opinions of secnetix in any way. > > "All that we see or seem is just a dream within a dream" (E. A. Poe) > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-small" in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message