Actually, there is one other upgrade that's needed to make the new rc.d/random_seed work properly in a 1.6 system
In netbsd-7 and later, rc.subr has dirname() and basename() functions, to avoid needing the programs from /usr/bin. basename isn't relevant to random_seed, but dirname is. Rather than dealing with everything else that's changed in rc.subr, you can just add dirname() as a function in the (updated) rc.d/randomseed script (near the start, so it is defined before it gets used). It is just ... dirname() { local file="$1" local dir case "$file" in /*/*) dir="${file%/*}" ;; # common case: absolute path /*) dir="/" ;; # special case: name in root dir */*) dir="${file%/*}" ;; # common case: relative path with '/' *) dir="." ;; # special case: name without '/' esac command printf "%s\n" "${dir}" } kre