Date: Wed, 1 Oct 1997 15:39:36 -0600 (MDT) From: Brandon Gillespie <brandon@roguetrader.com> To: freebsd-current@freeBSD.org Subject: new command: doconfig Message-ID: <Pine.BSF.3.96.971001151916.28417A-200000@roguetrader.com>
next in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1583598220-875741976=:28417 Content-Type: TEXT/PLAIN; charset=US-ASCII I would like to add this as a new command to FreeBSD. I mentioned it a few months back when I originally wrote it, and received positive responses about it. This command derives from a similar command in Digital Unix. 'doconfig' is basically a simplifier for kernel compiling, by wrapping 'vi /sys/i386/conf/MINE; config; cd ../../compile/MINE; make depend; make; make install; reboot' or whatnot into a simpler, nicer interface.. For instance, I just recompiled my kernel with (the GLACIER config file already existed): ---------------------------------------------------------------- % doconfig -r -c GLACIER Remove existing kernel log /sys/i386/conf/kernelbuild.log? [yes] y Removing old directory ../../compile/GLACIER: Done. Kernel build directory is ../../compile/GLACIER Building Dependancies.. 1-Oct-1997 15:20.49 Building Dependancies.. 1-Oct-1997 15:21.57 Building Kernel.. 1-Oct-1997 15:21.57 Building Kernel.. 1-Oct-1997 15:32.38 Installing Kernel.. 1-Oct-1997 15:32.38 A backup kernel already exists, rename to /kernel.29-Jul-1997? [yes] yes *** *** Ready to reboot. If the system is unable to bootup, you can type: *** *** /kernel.old *** *** At the 'Boot:' prompt, to boot from the old kernel. *** [Press ENTER to Reboot] ---------------------------------------------------------------- This program is a PERL program, and has a few places where I would like to expand it in the future (for instance, I've heard rumors about a auto-kernel-config-file-generation program, so for now I just run a few seds and whatnot on the GENERIC template, when generating a new config file--this could instead hook into the auto-generation one). I would like to add: /usr/sbin/doconfig /usr/share/man/man8/doconfig.8.gz Comments, questions? The manpage is attached. -Brandon Gillespie --0-1583598220-875741976=:28417 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="doconfig.man" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.3.96.971001153936.28417B@roguetrader.com> Content-Description: DQpET0NPTkZJRyg4KSAgICAgICAgICAgICBGcmVlQlNEIFN5c3RlbSBNYW5h Z2VyJ3MgTWFudWFsICAgICAgICAgICAgRE9DT05GSUcoOCkNCg0KTkFNRQ0K ICAgICBkb2NvbmZpZyAtIGludGVyYWN0aXZlbHkgY29uZmlndXJlIGFuZCBi dWlsZCBrZXJuZWwNCg0KU1lOT1BTSVMNCiAgICAgZG9jb25maWcgWy1jIGZp bGVdIFstZSBbZWRpdG9yXV0gWy1haXJdIFstZ3BuXQ0KDQpERVNDUklQVElP Tg0KICAgICBEb2NvbmZpZyBpcyB1c2VkIHRvIGJ1aWxkIGFuZCBpbnN0YWxs IGEgbmV3IGtlcm5lbCBmb3IgdGhlIHN5c3RlbS4gIEl0DQogICAgIGludGVy YWN0aXZlbHkgZ2VuZXJhdGVzIHRoZSBrZXJuZWwgY29uZmlnIGZpbGVzICh1 c2luZyBjb25maWcoOCkpLiAgY29tLQ0KICAgICBwaWxlcyB0aGUga2VybmVs IGFuZCBvcHRpb25hbHkgaW5zdGFsbHMgYW5kIHJlYm9vdHMgdGhlIHN5c3Rl bSB3aGVuIGZpbi0NCiAgICAgaXNoZWQuDQoNCiAgICAgQXZhaWxhYmxlIG9w dGlvbnM6DQoNCiAgICAgLWMgZmlsZSAgICAgIFVzZSBmaWxlIGFzIHRoZSBj b25maWd1cmF0aW9uIGZpbGUuIElmIHRoZSBmdWxsIHBhdGggaXMgZ2l2LQ0K ICAgICAgICAgICAgICAgICAgZW4gaW4gZmlsZSwgZG9jb25maWcgd2lsbCBj b3B5IGl0IHRvIC9zeXMvaTM4Ni9jb25mLiBPdGhlci0NCiAgICAgICAgICAg ICAgICAgIHdpc2UsIGl0IHdpbGwgYXNzdW1lIHRoZSBmaWxlIGV4aXN0cyBp biAvc3lzL2kzODYvY29uZi4gSWYNCiAgICAgICAgICAgICAgICAgIHRoaXMg b3B0aW9uIGlzIHVzZWQsIGRvY29uZm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dyYW0gYXV0 b2tlcm5jb25mIGlzIGV4ZWN1dGVkIHRvIGNyZWF0ZSBpdC4NCg0KRklMRVMN CiAgICAgL3N5cy9pMzg2L2NvbmYva2VybmVsYnVpbGQubG9nICBMb2dmaWxl IG9mIGtlcm5lbCBjb21waWxlLg0KICAgICAvc3lzL2kzODYvY29uZi9GSUxF ICAgICAgICAgICAgIENvbmZpZyBmaWxlIGdlbmVyYXRlZCBmb3IgY29uZmln Lg0KICAgICAva2VybmVsICAgICAgICAgICAgICAgICAgICAgICAgIFN5c3Rl bSBLZXJuZWwuDQogICAgIC9rZXJuZWwuREFURSAgICAgICAgICAgICAgICAg ICAgQmFja3VwIG9mIG9sZCBzeXN0ZW0gS2VybmVsLg0KDQpTRUUgQUxTTw0K ICAgICBjb25maWcoOCksICBhdXRva2VybmNvbmYoOCkNCg0KSElTVE9SWQ0K ICAgICBDcmVhdGVkIGZvciBGcmVlQlNEIDIuMiwgYmFzZWQgb2ZmIHRoZSBE aWdpdGFsIFVuaXggZG9jb25maWcuDQoNCiBGcmVlQlNEICAgICAgICAgICAg ICAgICAgICAgICAgQXByaWwgMTYsIDE5OTcgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgMQ0K --0-1583598220-875741976=:28417--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971001151916.28417A-200000>