You've already forked dhcpd-docker
							
							This commit is contained in:
		
							
								
								
									
										11
									
								
								rootfs/usr/local/bin/entrypoint.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								rootfs/usr/local/bin/entrypoint.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| mkdir --parents /etc/dhcp/ mkdir --parents /run/dhcpd{4,6}  || true | ||||
|  | ||||
| if [ "${DHCP_IP+x}" = "x" ] && [ ${DHCP_IP} == "6" ]; then | ||||
|   touch /var/lib/dhcp/dhcpd6.leases | ||||
|   /usr/bin/dhcpd -6 -cf /etc/dhcp/dhcpd6.conf -pf /run/dhcpd6/dhcpd.pid -d ${DHCP_INTERFACES} | ||||
| else | ||||
|   touch /var/lib/dhcp/dhcpd.leases | ||||
|   /usr/bin/dhcpd -4 -cf /etc/dhcp/dhcpd.conf -pf /run/dhcpd4/dhcpd.pid -d ${DHCP_INTERFACES} | ||||
| fi | ||||
		Reference in New Issue
	
	Block a user