FreeBSD Bugzilla – Attachment 224281 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]
Easy fixes first.
startmsgs.patch (text/plain), 2.10 KB, created by
Jose Luis Duran
on 2021-04-20 07:51:51 UTC
(
hide
)
Description:
Easy fixes first.
Filename:
MIME Type:
Creator:
Jose Luis Duran
Created:
2021-04-20 07:51:51 UTC
Size:
2.10 KB
patch
obsolete
>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..51ae800 100644 >--- libexec/rc/rc.d/ppp >+++ libexec/rc/rc.d/ppp >@@ -82,14 +82,20 @@ ppp_start() > _ppp_profile=$ppp_profile > fi > >- echo -n "Starting PPP profile:" >- >- for _p in $_ppp_profile; do >- echo -n " $_p" >- ppp_start_profile $_p >- done >- >- echo "." >+ if check_startmsgs; then >+ echo -n "Starting PPP profile:" >+ >+ for _p in $_ppp_profile; do >+ echo -n " $_p" >+ ppp_start_profile $_p >+ done >+ >+ echo "." >+ else >+ for _p in $_ppp_profile; do >+ ppp_start_profile $_p >+ done >+ 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..4349309 100644 >--- libexec/rc/rc.d/rfcomm_pppd_server >+++ libexec/rc/rc.d/rfcomm_pppd_server >@@ -90,14 +90,20 @@ rfcomm_pppd_server_start() > _profile=${rfcomm_pppd_server_profile} > fi > >- echo -n "Starting RFCOMM PPP profile:" >- >- for _p in ${_profile} ; do >- echo -n " ${_p}" >- rfcomm_pppd_server_start_profile ${_p} >- done >- >- echo "." >+ 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 >+ >+ echo "." >+ else >+ for _p in ${_profile} ; do >+ rfcomm_pppd_server_start_profile ${_p} >+ done >+ 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