FreeBSD Bugzilla – Attachment 224275 Details for
Bug 255207
rc_startmsgs: Silence "Starting ..." messages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Address @rgrimes suggestions
startmsgs.patch (text/plain), 2.60 KB, created by
Jose Luis Duran
on 2021-04-20 06:53:05 UTC
(
hide
)
Description:
Address @rgrimes suggestions
Filename:
MIME Type:
Creator:
Jose Luis Duran
Created:
2021-04-20 06:53:05 UTC
Size:
2.60 KB
patch
obsolete
>diff --git libexec/rc/rc.d/jail libexec/rc/rc.d/jail >index 1a3b551..68d5299 100644 >--- libexec/rc/rc.d/jail >+++ libexec/rc/rc.d/jail >@@ -446,7 +446,7 @@ jail_start() > if [ $# = 0 ]; then > return > fi >- echo -n 'Starting jails:' >+ check_startmsgs && echo -n 'Starting jails:' > case $1 in > _ALL) > command=$jail_program >diff --git libexec/rc/rc.d/local libexec/rc/rc.d/local >index ba17a67..d9dfc62 100644 >--- libexec/rc/rc.d/local >+++ libexec/rc/rc.d/local >@@ -17,7 +17,7 @@ stop_cmd="local_stop" > > local_start() > { >- if [ -f /etc/rc.local ]; then >+ if [ -f /etc/rc.local ] && check_startmsgs; then > echo -n 'Starting local daemons:' > . /etc/rc.local > echo '.' >diff --git libexec/rc/rc.d/netif libexec/rc/rc.d/netif >index 3dbb3e1..948253d 100644 >--- libexec/rc/rc.d/netif >+++ libexec/rc/rc.d/netif >@@ -247,7 +247,7 @@ netif_common() > _str='Reclaiming' > ;; > esac >- echo "${_str} Network:${_ok}." >+ check_startmsgs && echo "${_str} Network:${_ok}." > case ${_func} in > ifn_vnetup) > # Clear _ok not to do "ifconfig $ifn" >diff --git libexec/rc/rc.d/ppp libexec/rc/rc.d/ppp >index 93d0655..6b9a434 100644 >--- libexec/rc/rc.d/ppp >+++ libexec/rc/rc.d/ppp >@@ -82,14 +82,16 @@ ppp_start() > _ppp_profile=$ppp_profile > fi > >- echo -n "Starting PPP profile:" >+ if check_startmsgs; then >+ echo -n "Starting PPP profile:" > >- for _p in $_ppp_profile; do >- echo -n " $_p" >- ppp_start_profile $_p >- done >+ for _p in $_ppp_profile; do >+ echo -n " $_p" >+ ppp_start_profile $_p >+ done > >- echo "." >+ echo "." >+ fi > } > > ppp_poststart() >diff --git libexec/rc/rc.d/pppoed libexec/rc/rc.d/pppoed >index 7e84859..9495d58 100644 >--- libexec/rc/rc.d/pppoed >+++ libexec/rc/rc.d/pppoed >@@ -24,7 +24,7 @@ pppoed_start() > if [ -n "${pppoed_provider}" ]; then > pppoed_flags="${pppoed_flags} -p ${pppoed_provider}" > fi >- echo 'Starting pppoed' >+ check_startmsgs && echo 'Starting pppoed' > _opts=$-; set -f > /usr/libexec/pppoed ${pppoed_flags} ${pppoed_interface} > set +f; set -${_opts} >diff --git libexec/rc/rc.d/rfcomm_pppd_server libexec/rc/rc.d/rfcomm_pppd_server >index 990a224..0692400 100644 >--- libexec/rc/rc.d/rfcomm_pppd_server >+++ libexec/rc/rc.d/rfcomm_pppd_server >@@ -90,14 +90,16 @@ rfcomm_pppd_server_start() > _profile=${rfcomm_pppd_server_profile} > fi > >- echo -n "Starting RFCOMM PPP profile:" >+ if check_startmsgs; then >+ echo -n "Starting RFCOMM PPP profile:" > >- for _p in ${_profile} ; do >- echo -n " ${_p}" >- rfcomm_pppd_server_start_profile ${_p} >- done >+ for _p in ${_profile} ; do >+ echo -n " ${_p}" >+ rfcomm_pppd_server_start_profile ${_p} >+ done > >- echo "." >+ echo "." >+ fi > } > > rfcomm_pppd_server_stop()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 255207
:
224239
|
224275
|
224278
|
224281