Browse Source

Add function comments.

OK sthen, deraadt
OPENBSD_6_0
rpe 8 years ago
parent
commit
abe8fc7dec
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/etc/rc

+ 4
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.482 2016/05/26 16:29:51 deraadt Exp $
# $OpenBSD: rc,v 1.483 2016/05/27 16:49:08 rpe Exp $
# System startup script run by init on autoboot or after single-user. # System startup script run by init on autoboot or after single-user.
# Output and error are redirected to console by init, and the console is the # Output and error are redirected to console by init, and the console is the
@ -158,6 +158,7 @@ make_keys() {
ssh-keygen -A ssh-keygen -A
} }
# Re-link libraries, placing the objects in a random order.
reorder_libs() { reorder_libs() {
local _l _liba _libas _tmpdir _remount=false local _l _liba _libas _tmpdir _remount=false
local _dkdev=/dev/$(stat -L -f '%Sd' /usr/lib) local _dkdev=/dev/$(stat -L -f '%Sd' /usr/lib)
@ -214,6 +215,8 @@ reorder_libs() {
echo ' done.' echo ' done.'
} }
# Run rc.* script and email output to root.
# Usage: run_upgrade_script firsttime|sysmerge
run_upgrade_script() { run_upgrade_script() {
local _suffix=$1 local _suffix=$1
[[ -n $_suffix ]] || return 1 [[ -n $_suffix ]] || return 1


Loading…
Cancel
Save