Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106176395
D16739.id46752.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16739.id46752.diff
View Options
Index: head/net/dhcp6/Makefile
===================================================================
--- head/net/dhcp6/Makefile
+++ head/net/dhcp6/Makefile
@@ -4,6 +4,7 @@
PORTNAME= dhcp6
PORTVERSION= 20080615.2
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= net ipv6
MAINTAINER= hrs@FreeBSD.org
Index: head/net/dhcp6/files/dhcp6c.in
===================================================================
--- head/net/dhcp6/files/dhcp6c.in
+++ head/net/dhcp6/files/dhcp6c.in
@@ -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}"
@@ -46,6 +49,10 @@
if [ -z ${dhcp6c_interfaces} ]; then
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
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 3:55 PM (9 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15615513
Default Alt Text
D16739.id46752.diff (1 KB)
Attached To
Mode
D16739: net/dhcp6: Generate dhcp6cctlkey from the rc.d script when missing
Attached
Detach File
Event Timeline
Log In to Comment