FreeBSD Bugzilla – Attachment 194966 Details for
Bug 229400
[PATCH] net/dhcp6: Generate /usr/local/etc/dhcp6cctlkey in rc.d script when missing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
revised patch
patch2.txt (text/plain), 1.00 KB, created by
Craig Leres
on 2018-07-08 22:10:19 UTC
(
hide
)
Description:
revised patch
Filename:
MIME Type:
Creator:
Craig Leres
Created:
2018-07-08 22:10:19 UTC
Size:
1.00 KB
patch
obsolete
>Index: net/dhcp6/files/dhcp6c.in >=================================================================== >--- net/dhcp6/files/dhcp6c.in (revision 474177) >+++ net/dhcp6/files/dhcp6c.in (working copy) >@@ -16,6 +16,8 @@ > # Set it to YES to enable dhcp6c. > # dhcp6c_config (path): Set to %%PREFIX%%/etc/dhcp6c.conf > # by default. >+# dhcp6c_dhcp6cctlkey (path): Set to %%PREFIX%%/etc/dhcp6cctlkey >+# by default. > # dhcp6c_pidfile (path): Set to /var/run/dhcp6c.pid > # by default. > # dhcp6c_interfaces (NIC list): Not defined by default. >@@ -35,6 +37,7 @@ > > : ${dhcp6c_enable="NO"} > : ${dhcp6c_config="%%PREFIX%%/etc/${name}.conf"} >+: ${dhcp6c_dhcp6cctlkey="%%PREFIX%%/etc/dhcp6cctlkey"} > : ${dhcp6c_pidfile="/var/run/${name}.pid"} > > required_files="${dhcp6c_config}" >@@ -47,6 +50,10 @@ > warn "dhcp6c_interfaces is not set." > return 1 > fi >+ if [ ! -s ${dhcp6c_dhcp6cctlkey} ]; then >+ echo "Creating ${dhcp6c_dhcp6cctlkey}" >+ (umask 077 ; openssl rand -base64 48 > ${dhcp6c_dhcp6cctlkey}) >+ fi > } > > run_rc_command "$1"
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
Flags:
leres
:
maintainer-approval?
Actions:
View
|
Diff
Attachments on
bug 229400
:
194716
| 194966
Working