summaryrefslogtreecommitdiff
path: root/distrib
AgeCommit message (Collapse)Author
2002-12-04Code cleanup & shrinkage.Kenneth R Westerback
Redo configure_ifs() to take full advantage of recent code refactoring, and cleanup code while there. Move address or dhcp question to after media option handling so that each question gives immediate feedback. i.e. if the media options given don't work then say so and exit, and if dhcp is requested immediately issue the dhcp request. Also allows some code shrinkage. Eliminate addifconfig() and remount(). The former is folded into configure_ifs() and the latter's three lines simply replace the call in install.sh. Move remount code to before any configuration files are moved to the installed system.
2002-12-03syncTheo de Raadt
2002-12-03More code consolidation.Kenneth R Westerback
Create dhcp_request() and use in configure_ifs() rather than repeat code. When dhcp is successful, move /etc/dhclient.conf, /etc/resolv.conf.tail to /tmp, and use normal configuration file installation to put them on the installed system. Also apply any user specified media options immediately. If they don't compute then return immediately.
2002-12-02syncTheo de Raadt
2002-12-02syncTheo de Raadt
2002-12-01Code consolidation. Create edit_tmp_file(), manual_net_cfg(), inet_info()Kenneth R Westerback
to abstract repeated code blocks. Current score: 3.2 install+upgrade+install.sub = 40,062 bytes -current " " " = 38,051
2002-12-01Create kill_dhclient(). Use before any attempt to run dhclient, toKenneth R Westerback
avoid problems with the single bpf interface available on install media. Move umount'ing of filesystems to the start of any install or upgrade execution. Eliminate now vestigal cleanup_on_exit() and all associated traps. Shrinks scripts, makes more reliable, improves intuitiveness of re-running install or upgrade, eliminates an install/upgrade time message, leaves filesystems available if install/upgrade script interrupted.
2002-12-01syncTheo de Raadt
2002-11-30syncTheo de Raadt
2002-11-29syncTheo de Raadt
2002-11-29Ask for DNS domain name *after* the interfaces are configured, at theKenneth R Westerback
same time as we ask for the default route and name server addresses. This allows users to override any DHCP supplied domain information the same way they could override DHCP supplied default route and name server addresses. As a result, remove the now superfluous warning about not supplying information DHCP is going to overwrite.
2002-11-28mention midi uartsMichael Shalayeff
2002-11-28Sync with pciide(4): mention Promise PDC20275 PDC20277 andAlexander Yurchenko
Viatech VT8366 VT8233 VT8235 as supported ok gluk@
2002-11-28Use any existing hostname as the default, as the install could haveKenneth R Westerback
been restarted. Discard any domain information the user supplies.
2002-11-28spacesTheo de Raadt
2002-11-28Make questions out of requests for user input that were demands. UseKenneth R Westerback
a standard format of <question>? (<extra verbiage>) [<default value>] Makes things more consistant, and sometimes more terse.
2002-11-28Save a few bytes;Kenneth R Westerback
1) The one '/sbin/ifconfig' -> 'ifconfig'. 2) Eliminate local variable and thereby unneeded '\n' in welcome().
2002-11-28Fix indent botch.Kenneth R Westerback
2002-11-26reflect currently supported bge(4) devicesNathan Binkert
2002-11-25enable fxp(4) and xl(4) on sparc64; ok jason@Christian Weisgerber
2002-11-25add xl(4) as supported on macppc and the missing em(4).Dale Rahn
2002-11-25sncTheo de Raadt
2002-11-24use 8 rounds for passwd, like login.conf specifies; rob_ses@web.deTheo de Raadt
2002-11-24syncTheo de Raadt
2002-11-23Sync with sbin/kbd/MakefileMiod Vallat
2002-11-23syncTheo de Raadt
2002-11-23syncTheo de Raadt
2002-11-22syncTheo de Raadt
2002-11-22syncTheo de Raadt
2002-11-21lofn worksJason Wright
2002-11-21Hifn 6500 supportedJason Wright
2002-11-20Netra T1/105 worksJason Wright
2002-11-19syncTheo de Raadt
2002-11-18syncTheo de Raadt
2002-11-14syncMichael Shalayeff
2002-11-11sync; ok mickey millertPeter Valchev
2002-11-10Polish wording on fstab verbiage, and swap paragraphs so the paragraphKenneth R Westerback
descibing how the fstab will be used follows immediately after the fstab listing, and the paragraph explaining about editing the fstab comes immediately before the offer to edit the fstab. Eliminate a blank line before the question as it is now tightly related to the paragraph that precedes it.
2002-11-10Fix makedev() so that if the device nodes are *not* created, makedev()Kenneth R Westerback
returns false, and the device is *not* added to DEVSMADE.
2002-11-09Recent addition of support for http redirect requires adding '-lutil'Kenneth R Westerback
to LDADD, and ${LIBUTIL} to DPADD. ok fgsch@.
2002-11-09Code cleanup, simplification and shrinkage.Kenneth R Westerback
Eliminate the function get_setsdir() by merging it into install_mounted_fs(). Eliminate global SETSDIR as a result. Move the loop logic used to select the directory to use on a mounted filesystem to a 'done' style loop. i.e. loop until valid input (a directory which exists) or 'done'. 'done' implies abandoning effort to find a directory. Eliminate the test for and associated error message about no filesystems being mounted below the mount point passed to install_mounted_fs(). This served little purpose not addressed by the message generated when a non-existant directory is entered. i.e. novices won't understand and experts can '!' out to investigate. Remove the option to list mounted filesystems. Same reasons as for eliminating the test for mounted filesystems. Move repeated tests for an empty GET_FILES into the function invariably called after the tests (install_get_files()).
2002-11-09Fix two problems:Kenneth R Westerback
1) When asked to choose a device, a user could enter two identical words separated by a blank (e.g. 'a a') and thereby confuse the check for selection validity. Quote user response before using it. 2) When asked to choose a sub-timezone, the user could escape to a shell and when returning only see half the sub-timezone prompt redisplayed. Put entire prompt into ask() parameter rather than displaying first half in a separate echo -n. Also change a "(or done)" to "(or 'done')" to be consistant with other similar displays and move the initial comment for mount_a_disk() to before the function to conform to normal usage.
2002-11-08add a radio receivers section and bktr yto the miscMichael Shalayeff
2002-11-07mention onther windows nt flavours wrt using proper raw floppy writing ↵Michael Shalayeff
utility; form DJ Gregor via pr2851
2002-11-07Treat 'bsd' like just another filename in THESETS, no more 'kernel'Kenneth R Westerback
logic. As result, MDSETS gone from everything but mac68k. MDSETS now treated as a list of complete file names to add to THESETS, allowing more MD flexibility, i.e. may or may not be .tgz files. All traces of tar.gz removed. Not used for sets since 2.7 or so. As a result of code simplification from not having to consider tar.gz, the functions get_sets(), make_lastset(), and set_not_done() are eliminated, along with the global SETS. Build THESETS and DEFAULTSETS to contain full file names. Always install sets in the order they appear in THESETS, keeping siteXX last but without needing special logic. More predictable for user if a lot of set additions and removals done before being satisfied, as the sets are now installed in the same order they appear in the selection list. Remove ability to look for non-set .tgz/.tar.gz files. The job of the install scripts is to install the standard sets in a simple and rational way. Not to install general tar balls. The user can do that post-install or simply '!' out to do it during install. On their head be it. If no sets are found in a specified source, list the filenames in THESETS to show what is being looked for.
2002-11-02sync after libc[_r] minor crank; pvalchev@ ok.Federico G. Schwindt
2002-11-02sync.Federico G. Schwindt
2002-11-01Cleanup. Don't bother complaining when the user selects some non-existantKenneth R Westerback
set. Just re-display the selection list unchanged. Smaller, cleaner.
2002-11-01Cleanup. install_sets() no longer takes a parameter.Kenneth R Westerback
2002-10-31Introduce some better feedback during attempted ftp installations. InKenneth R Westerback
this pass check the file list returned by ftp_list_file() for two common errors ('Login failed.' and 'No such file or directory.') and display the error messages rather than just complaining that no sets were found. Delete an unused local variable. Do not allow the user to continue with the install/upgrade if the sanity checks fail. Keep asking them to install more sets until the checks succeed. ok millert@.
2002-10-30Change kernel set to shorter names on mac68k; supposed to make krw'sMiod Vallat
next changes easier.