summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpe <rpe@openbsd.org>2016-05-27 16:49:08 +0000
committerrpe <rpe@openbsd.org>2016-05-27 16:49:08 +0000
commit2aff8cd6e49596abcaa17a9cfa77e36039fa1b86 (patch)
treee3fdc465b3432deee1fe19373d4727654237a5e8
parentrename(2) operation requires "rpath cpath" at the underlying operation (diff)
downloadwireguard-openbsd-2aff8cd6e49596abcaa17a9cfa77e36039fa1b86.tar.xz
wireguard-openbsd-2aff8cd6e49596abcaa17a9cfa77e36039fa1b86.zip
Add function comments.
OK sthen, deraadt
-rw-r--r--etc/rc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index ff730691278..a2676e220e6 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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.
# Output and error are redirected to console by init, and the console is the
@@ -158,6 +158,7 @@ make_keys() {
ssh-keygen -A
}
+# Re-link libraries, placing the objects in a random order.
reorder_libs() {
local _l _liba _libas _tmpdir _remount=false
local _dkdev=/dev/$(stat -L -f '%Sd' /usr/lib)
@@ -214,6 +215,8 @@ reorder_libs() {
echo ' done.'
}
+# Run rc.* script and email output to root.
+# Usage: run_upgrade_script firsttime|sysmerge
run_upgrade_script() {
local _suffix=$1
[[ -n $_suffix ]] || return 1