Here are some enhancements to sushi's System Maintenance menu.
To summarize the changes:
* Make a backup of the file before modifying it.
* Fixes to get all menus/forms working.
* Missing/invalid settings (like in rc.conf and inetd.conf)
have been added/removed.
* Most files don't get overwritten now but are edited instead.
So specials settings in e.g. /etc/rc.conf don't get lost now.
* Some help menu fixes. ($NetBSD$ tag has been removed because I
don't see how it would be useful for either user or developer).
getcontext(). There are some registers not properly saved with the
new syscall entry, but these are calee-saved, scratch or meaningless.
It's the setcontext() return path what matters.
I've made a patch for sushi(8) for setting environment variables at startup.
This might be useful when a user needs a different terminal type.
The patch also fixes the searchpaths when the config file does not
contain any.
The changes are:
* rename "Security and Users" to "Users and Groups"
* use default settings in /etc/usermgmt.conf (if it exists)
when adding a new user.
* fix output for 'List users'.
* add the following menu's: Modify user, Change password, Add group,
List groups, Delete group.
related scripts:
* Don't check if the daemons ntpdate, virecover, ipfilter, samba
are running (because they get only started at boot, or are wrappers
to other scripts).
* Exclude lines with 'not supported' and 'not found' in the ouput.
* Top 15 cpu {usage,time} and memory: show really the 15 top daemons
(instead of 14) and fix cpu time.
-rename the fonts.dir/fonts.scale targets to avoid collision with
regular files
-allow the rule for "fonts.scale" to be overridden, and do so in
the Speedo Makefile
in interrupt context.
if this is not a desired restriction, then those functions
should be reviewed for safety, at least protecting pool_head_slock
with splvm()
clean ${BDFFILES} and ${PCFFILES} via separate rm -f's during "make
cleandir." The need to split these into separate rm's comes from the
fact that some cross-compilation host systems can't deal with the
>128kB arg list that a single 'rm' of all these things would cause.
The desire to clean the actual generated fonts only in 'cleandir' came
from lukem during review.