aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/sysctl
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-07-31 22:13:14 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-07-31 22:13:14 +0000
commit4746c560a46302d7e5be213bc58d00a10e620ab0 (patch)
tree841416e7c18de228d2a7824b311325c97197d119 /etc/rc.d/sysctl
parent4ceda705b7fd022f40e7405c4cb42b2b952e0943 (diff)
downloadsrc-4746c560a46302d7e5be213bc58d00a10e620ab0.tar.gz
src-4746c560a46302d7e5be213bc58d00a10e620ab0.zip
Oops, restore the recent changes to make startup messages quieter.
Notes
Notes: svn path=/head/; revision=181071
Diffstat (limited to 'etc/rc.d/sysctl')
-rwxr-xr-xetc/rc.d/sysctl4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/sysctl b/etc/rc.d/sysctl
index 623956d63b1d..d1a42d152df4 100755
--- a/etc/rc.d/sysctl
+++ b/etc/rc.d/sysctl
@@ -36,7 +36,9 @@ parse_file()
${val})
;;
*)
- sysctl "${var}"
+ if ! sysctl "${var}" >/dev/null 2>&1; then
+ warn "unable to set ${var}"
+ fi
;;
esac
elif [ "$2" = "last" ]; then