Page MenuHomeFreeBSD

D53169.1795423303.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D53169.1795423303.diff

diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf
--- a/libexec/rc/rc.conf
+++ b/libexec/rc/rc.conf
@@ -706,7 +706,9 @@
osrelease_enable="YES" # Update /var/run/os-release on boot (or NO).
osrelease_file="/var/run/os-release" # File to update for os-release.
osrelease_perms="444" # Default permission for os-release file.
-dmesg_enable="YES" # Save dmesg(8) to /var/run/dmesg.boot
+dmesg_enable="YES" # Save dmesg(8) to $dmesg_file.
+dmesg_file="/var/run/dmesg.boot" # File containing dmesg(8) output.
+dmesg_umask="022" # Default umask for $dmesg_file.
watchdogd_enable="NO" # Start the software watchdog daemon
watchdogd_flags="" # Flags to watchdogd (if enabled)
watchdogd_timeout="" # watchdogd timeout, overrides -t in watchdogd_flags
diff --git a/libexec/rc/rc.d/dmesg b/libexec/rc/rc.d/dmesg
--- a/libexec/rc/rc.d/dmesg
+++ b/libexec/rc/rc.d/dmesg
@@ -12,14 +12,13 @@
name="dmesg"
desc="Save kernel boot messages to disk"
rcvar="dmesg_enable"
-dmesg_file="/var/run/dmesg.boot"
start_cmd="do_dmesg"
stop_cmd=":"
do_dmesg()
{
rm -f ${dmesg_file}
- ( umask 022 ; /sbin/dmesg $rc_flags > ${dmesg_file} )
+ ( umask ${dmesg_umask} ; /sbin/dmesg $rc_flags > ${dmesg_file} )
}
load_rc_config $name

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 8:41 AM (19 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41926490
Default Alt Text
D53169.1795423303.diff (1 KB)

Event Timeline