head	1.8;
access;
symbols
	perseant-exfatfs-base-20250801:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.12
	perseant-exfatfs-base:1.8
	cjep_sun2x:1.8.0.10
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	cjep_staticlib_x:1.8.0.8
	cjep_staticlib_x-base:1.8
	phil-wifi-20200421:1.8
	phil-wifi-20200411:1.8
	phil-wifi-20200406:1.8
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	netbsd-7-2-RELEASE:1.1.1.7.2.2
	pgoyette-compat-0728:1.8
	pgoyette-compat-0625:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	netbsd-7-1-2-RELEASE:1.1.1.7.2.1
	pgoyette-compat:1.8.0.6
	pgoyette-compat-base:1.8
	netbsd-7-1-1-RELEASE:1.1.1.7.2.1
	perseant-stdc-iso10646:1.8.0.4
	perseant-stdc-iso10646-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.2
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.7
	netbsd-7-1:1.1.1.7.2.1.0.6
	netbsd-7-1-RELEASE:1.1.1.7.2.1
	netbsd-7-1-RC2:1.1.1.7.2.1
	netbsd-7-nhusb-base-20170116:1.1.1.7.2.1
	bouyer-socketcan:1.7.0.4
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	netbsd-7-1-RC1:1.1.1.7.2.1
	pgoyette-localcount-20161104:1.7
	netbsd-7-0-2-RELEASE:1.1.1.7.2.1
	dhcpcd-6-11-4-reimport:1.1.1.11
	dhcpcd-6-11-4:1.1.1.11
	localcount-20160914:1.7
	netbsd-7-nhusb:1.1.1.7.2.1.0.4
	netbsd-7-nhusb-base:1.1.1.7.2.1
	dhcpcd-6-11-3:1.1.1.11
	pgoyette-localcount-20160806:1.7
	dhcpcd-6-11-2:1.1.1.11
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.2
	pgoyette-localcount-base:1.7
	dhcpcd-6-11-1:1.1.1.11
	netbsd-7-0-1-RELEASE:1.1.1.7.2.1
	dhcpcd-6-11-0:1.1.1.11
	dhcpcd-6-10-3:1.1.1.11
	dhcpcd-6-10-2:1.1.1.11
	dhcpcd-6-10-1:1.1.1.11
	dhcpcd-6-10-0:1.1.1.11
	dhcpcd-6-9-4:1.1.1.11
	netbsd-7-0:1.1.1.7.2.1.0.2
	netbsd-7-0-RELEASE:1.1.1.7.2.1
	dhcpcd-6-9-3:1.1.1.11
	dhcpcd-6-9-2:1.1.1.11
	netbsd-7-0-RC3:1.1.1.7.2.1
	netbsd-7-0-RC2:1.1.1.7.2.1
	dhcpcd-6-9-1:1.1.1.11
	netbsd-7-0-RC1:1.1.1.7.2.1
	dhcpcd-6-9-0:1.1.1.11
	dhcpcd-6-8-2:1.1.1.11
	dhcpcd-6-8-1:1.1.1.11
	dhcpcd-6-8-0:1.1.1.11
	dhcpcd-6-7-1:1.1.1.10
	dhcpcd-6-7-0:1.1.1.10
	dhcpcd-6-6-7:1.1.1.10
	dhcpcd-6-6-6:1.1.1.10
	dhcpcd-6-6-5:1.1.1.10
	dhcpcd-6-6-4:1.1.1.10
	dhcpcd-6-6-3:1.1.1.10
	dhcpcd-6-6-2:1.1.1.10
	dhcpcd-6-6-1-nb1:1.1.1.10
	dhcpcd-6-6-1:1.1.1.9
	dhcpcd-6-6-0:1.1.1.8
	dhcpcd-6-5-1:1.1.1.8
	dhcpcd-6-5-0:1.1.1.8
	dhcpcd-6-4-7:1.1.1.8
	dhcpcd-6-4-6:1.1.1.8
	netbsd-6-0-6-RELEASE:1.1.1.4
	netbsd-6-1-5-RELEASE:1.1.1.4.6.1
	dhcpcd-6-4-5:1.1.1.8
	dhcpcd-6-4-4:1.1.1.8
	netbsd-7:1.1.1.7.0.2
	netbsd-7-base:1.1.1.7
	dhcpcd-6-4-3:1.1.1.7
	dhcpcd-6-4-2:1.1.1.7
	dhcpcd-6-4-1:1.1.1.7
	dhcpcd-6-4-0:1.1.1.7
	yamt-pagecache-base9:1.1.1.6
	yamt-pagecache-tag8:1.1.1.4.4.1
	netbsd-6-1-4-RELEASE:1.1.1.4.6.1
	netbsd-6-0-5-RELEASE:1.1.1.4
	tls-earlyentropy:1.1.1.6.0.4
	tls-earlyentropy-base:1.1.1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.6
	riastradh-drm2-base3:1.1.1.6
	dhcpcd-6-3-2:1.1.1.6
	dhcpcd-6-3-1:1.1.1.6
	dhcpcd-6-3-0:1.1.1.6
	netbsd-6-1-3-RELEASE:1.1.1.4.6.1
	netbsd-6-0-4-RELEASE:1.1.1.4
	dhcpcd-6-2-1:1.1.1.6
	dhcpcd-6-2-0:1.1.1.6
	netbsd-6-1-2-RELEASE:1.1.1.4.6.1
	netbsd-6-0-3-RELEASE:1.1.1.4
	dhcpcd-6-1-0:1.1.1.6
	netbsd-6-1-1-RELEASE:1.1.1.4.6.1
	dhcpcd-6-0-5:1.1.1.6
	dhcpcd-6-0-4:1.1.1.6
	riastradh-drm2-base2:1.1.1.6
	riastradh-drm2-base1:1.1.1.6
	dhcpcd-6-0-3:1.1.1.6
	riastradh-drm2:1.1.1.6.0.2
	riastradh-drm2-base:1.1.1.6
	dhcpcd-6-0-1:1.1.1.6
	dhcpcd_6_0_0:1.1.1.6
	netbsd-6-1:1.1.1.4.6.1.0.2
	netbsd-6-0-2-RELEASE:1.1.1.4
	netbsd-6-1-RELEASE:1.1.1.4.6.1
	khorben-n900:1.1.1.5.0.8
	netbsd-6-1-RC4:1.1.1.4.6.1
	netbsd-6-1-RC3:1.1.1.4.6.1
	agc-symver:1.1.1.5.0.6
	agc-symver-base:1.1.1.5
	netbsd-6-1-RC2:1.1.1.4.6.1
	netbsd-6-1-RC1:1.1.1.4.6.1
	dhcpcd-5-6-7:1.1.1.5
	yamt-pagecache-base8:1.1.1.5
	dhcpcd-5-6-6:1.1.1.5
	netbsd-6-0-1-RELEASE:1.1.1.4
	yamt-pagecache-base7:1.1.1.5
	dhcpcd-5-6-4:1.1.1.5
	matt-nb6-plus-nbase:1.1.1.4
	yamt-pagecache-base6:1.1.1.5
	netbsd-6-0:1.1.1.4.0.10
	netbsd-6-0-RELEASE:1.1.1.4
	netbsd-6-0-RC2:1.1.1.4
	tls-maxphys:1.1.1.5.0.2
	tls-maxphys-base:1.1.1.7
	dhcpcd-5-6-2:1.1.1.5
	matt-nb6-plus:1.1.1.4.0.8
	matt-nb6-plus-base:1.1.1.4
	netbsd-6-0-RC1:1.1.1.4
	dhcpcd-5-6-1:1.1.1.5
	yamt-pagecache-base5:1.1.1.5
	yamt-pagecache-base4:1.1.1.5
	dhcpcd-5-5-6:1.1.1.5
	dhcpcd-5-5-5:1.1.1.4
	netbsd-6:1.1.1.4.0.6
	netbsd-6-base:1.1.1.4
	dhcpcd-5-5-4:1.1.1.4
	dhcpcd-5-5-3:1.1.1.4
	dhcpcd-5-5-2:1.1.1.4
	dhcpcd-5-5-1:1.1.1.4
	dhcpcd-5-5-0:1.1.1.4
	yamt-pagecache-base3:1.1.1.4
	yamt-pagecache-base2:1.1.1.4
	yamt-pagecache:1.1.1.4.0.4
	yamt-pagecache-base:1.1.1.4
	cherry-xenmp:1.1.1.4.0.2
	cherry-xenmp-base:1.1.1.4
	dhcpcd-5-2-12:1.1.1.4
	bouyer-quota2-nbase:1.1.1.3
	dhcpcd-5-2-11:1.1.1.3
	bouyer-quota2:1.1.1.3.0.2
	bouyer-quota2-base:1.1.1.3
	dhcpcd-5-2-10:1.1.1.3
	matt-mips64-premerge-20101231:1.1.1.3
	dhcpcd-5-2-9:1.1.1.3
	dhcpcd-5-2-8:1.1.1.2
	dhcpcd-5-2-4:1.1.1.1
	dhcpcd-5-2-2:1.1.1.1
	dhcpcd-5-2-1:1.1.1.1
	dhcpcd-5-2-0:1.1.1.1
	dhcpcd-5-1-5:1.1.1.1
	dhcpcd-5-1-4:1.1.1.1
	roy:1.1.1;
locks; strict;
comment	@# @;


1.8
date	2017.03.31.20.53.56;	author roy;	state dead;
branches;
next	1.7;
commitid	dLxJqjjcfoFGgKLz;

1.7
date	2015.03.26.10.26.37;	author roy;	state Exp;
branches
	1.7.2.1
	1.7.4.1;
next	1.6;
commitid	OGK5Iv26nDl9s6fy;

1.6
date	2014.11.07.20.51.03;	author roy;	state Exp;
branches;
next	1.5;
commitid	75oEB7w8hHnrniXx;

1.5
date	2014.11.07.20.43.33;	author roy;	state Exp;
branches;
next	1.4;
commitid	hAQ3M4m1B34VkiXx;

1.4
date	2014.11.07.20.32.05;	author roy;	state Exp;
branches;
next	1.3;
commitid	SjGER4FFqwIXgiXx;

1.3
date	2014.10.17.23.42.25;	author roy;	state Exp;
branches;
next	1.2;
commitid	9G64jKP8UtP60CUx;

1.2
date	2014.10.06.18.22.30;	author roy;	state Exp;
branches;
next	1.1;
commitid	brDOONtoZlOhAaTx;

1.1
date	2009.12.23.08.30.10;	author roy;	state Exp;
branches
	1.1.1.1;
next	;

1.7.2.1
date	2017.04.26.02.52.23;	author pgoyette;	state dead;
branches;
next	;
commitid	ojV02aOSdzvBqZOz;

1.7.4.1
date	2017.04.21.16.51.23;	author bouyer;	state dead;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.1.1.1
date	2009.12.23.08.30.10;	author roy;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2010.10.07.14.35.58;	author roy;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2010.11.27.11.24.15;	author roy;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2011.04.06.09.06.42;	author roy;	state Exp;
branches
	1.1.1.4.4.1
	1.1.1.4.6.1;
next	1.1.1.5;

1.1.1.5
date	2012.03.28.10.19.32;	author roy;	state Exp;
branches
	1.1.1.5.2.1;
next	1.1.1.6;

1.1.1.6
date	2013.06.21.19.33.08;	author roy;	state Exp;
branches
	1.1.1.6.4.1;
next	1.1.1.7;
commitid	SXn20EEvZ4In4wUw;

1.1.1.7
date	2014.06.14.20.51.09;	author roy;	state Exp;
branches
	1.1.1.7.2.1;
next	1.1.1.8;
commitid	MoRU3isFNd4R3xEx;

1.1.1.8
date	2014.09.16.22.23.21;	author roy;	state Exp;
branches;
next	1.1.1.9;
commitid	VYSyBEUwq9SmyCQx;

1.1.1.9
date	2014.11.07.20.24.03;	author roy;	state Exp;
branches;
next	1.1.1.10;
commitid	r3g7iXT9fDtAdiXx;

1.1.1.10
date	2014.11.07.20.41.32;	author roy;	state Exp;
branches;
next	1.1.1.11;
commitid	oii7SeL5oq7JjiXx;

1.1.1.11
date	2015.03.26.10.20.44;	author roy;	state Exp;
branches;
next	;
commitid	uWTKGazQOGxPp6fy;

1.1.1.4.4.1
date	2012.04.17.00.03.06;	author yamt;	state Exp;
branches;
next	1.1.1.4.4.2;

1.1.1.4.4.2
date	2014.05.22.15.44.40;	author yamt;	state Exp;
branches;
next	;
commitid	bCgsIAYejpvb7yBx;

1.1.1.4.6.1
date	2012.10.17.21.48.32;	author riz;	state Exp;
branches;
next	;

1.1.1.5.2.1
date	2013.06.23.06.26.31;	author tls;	state Exp;
branches;
next	1.1.1.5.2.2;
commitid	OnlO1cBgtQRcIHUw;

1.1.1.5.2.2
date	2014.08.19.23.46.43;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.1.1.6.4.1
date	2014.08.10.07.06.59;	author tls;	state Exp;
branches;
next	;
commitid	6GtpeveLcuaaGMLx;

1.1.1.7.2.1
date	2014.12.29.16.18.05;	author martin;	state Exp;
branches;
next	1.1.1.7.2.2;
commitid	rwbq7QmIjmQl9X3y;

1.1.1.7.2.2
date	2018.07.27.10.43.20;	author martin;	state dead;
branches;
next	;
commitid	HmTKhyRj9OTCmLLA;


desc
@@


1.8
log
@Sync
@
text
@# $NetBSD: 50-ypbind,v 1.7 2015/03/26 10:26:37 roy Exp $

# Sample dhcpcd hook for ypbind
# This script is only suitable for the BSD versions.

: ${ypbind_restart_cmd:=service_command ypbind restart}
: ${ypbind_stop_cmd:=service_condcommand ypbind stop}
ypbind_dir="$state_dir/ypbind"
: ${ypdomain_dir:=/var/yp}
: ${ypdomain_suffix:=.ypservers}


best_domain()
{
	local i=

	for i in "$ypbind_dir/$interface_order".*; do
		if [ -f "$i" ]; then
			cat "$i"
			return 0
		fi
	done
	return 1
}

make_yp_binding()
{
	[ -d "$ypbind_dir" ] || mkdir -p "$ypbind_dir"
	echo "$new_nis_domain" >"$ypbind_dir/$ifname"

	if [ -z "$ypdomain_dir" ]; then
		false
	else
		local cf="$ypdomain_dir/$new_nis_domain$ypdomain_suffix"
		if [ -n "$new_nis_servers" ]; then
			local ncf="$cf.$ifname" x=
			rm -f "$ncf"
			for x in $new_nis_servers; do
				echo "$x" >>"$ncf"
			done
			change_file "$cf" "$ncf"
		else
			[ -e "$cf" ] && rm "$cf"
		fi
	fi

	local nd="$(best_domain)"
	if [ $? = 0 -a "$nd" != "$(domainname)" ]; then
		domainname "$nd"
		if [ -n "$ypbind_restart_cmd" ]; then
			eval $ypbind_restart_cmd
		fi
	fi
}

restore_yp_binding()
{

	rm -f "$ypbind_dir/$ifname"
	local nd="$(best_domain)"
	# We need to stop ypbind if there is no best domain
	# otherwise it will just stall as we cannot set domainname
	# to blank :/
	if [ -z "$nd" ]; then
		if [ -n "$ypbind_stop_cmd" ]; then
			eval $ypbind_stop_cmd
		fi
	elif [ "$nd" != "$(domainname)" ]; then
		domainname "$nd"
		if [ -n "$ypbind_restart_cmd" ]; then
			eval $ypbind_restart_cmd
		fi
	fi
}

if [ "$reason" = PREINIT ]; then
	rm -f "$ypbind_dir/$interface".*
elif $if_up || $if_down; then
	if [ -n "$new_nis_domain" ]; then
		if valid_domainname "$new_nis_domain"; then
			make_yp_binding
		else
			syslog err "Invalid NIS domain name: $new_nis_domain"
		fi
	elif [ -n "$old_nis_domain" ]; then
		restore_yp_binding
	fi
fi
@


1.7
log
@Sync
@
text
@d1 1
a1 1
# $NetBSD: 50-ypbind,v 1.6 2014/11/07 20:51:03 roy Exp $
@


1.7.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: 50-ypbind,v 1.7 2015/03/26 10:26:37 roy Exp $
@


1.7.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: 50-ypbind,v 1.7 2015/03/26 10:26:37 roy Exp $
@


1.6
log
@Add RCSIDs
@
text
@d1 1
a1 1
# $NetBSD: $
d17 4
a20 3
	for i in $interfaces; do
		if [ -e "$ypbind_dir/$i" ]; then
			cat "$ypbind_dir/$i"
a29 1
	local nd="$(best_domain)"
d47 2
a48 1
	if [ $? = 0 -o "$nd" != "$(domainname)" ]; then
d77 1
a77 1
	rm -f "$ypbind_dir/$ifname"
@


1.5
log
@Sync
@
text
@d1 2
@


1.4
log
@Sync
@
text
@a0 2


@


1.3
log
@Sync
@
text
@d1 1
a1 1
# $NetBSD: $
@


1.2
log
@Sync
@
text
@@


1.1
log
@Initial revision
@
text
@d1 2
d4 1
a4 1
# This script is only suitable for the Linux version.
d6 5
a10 8
# Distributions may want to just have their command here instead of this
if [ -x /etc/rc.d/ypbind ]; then
	ypbind_restart_cmd="/etc/rc.d/ypbind restart"
	ypbind_stop_cmd="/etc/rc.d/ypbind stop"
elif [ -x /usr/local/etc/rc.d/ypbind ]; then
	ypbind_restart_cmd="/usr/local/etc/rc.d/ypbind restart"
	ypbind_stop_cmd="/usr/local/etc/rc.d/ypbind stop"
fi
a11 1
ypbind_dir="$state_dir/ypbind"
d28 1
a28 1
	echo "$new_nis_domain" >"$ypbind_dir/$interface"
d31 2
a32 8
	local cf=/var/yp/binding/"$new_nis_domain".ypservers
	if [ -n "$new_nis_servers" ]; then
		local ncf="$cf.$interface" x=
		rm -f "$ncf"
		for x in $new_nis_servers; do
			echo "$x" >>"$ncf"
		done
		change_file "$cf" "$ncf"
d34 11
a44 2
		# Because this is not an if .. fi then we can use $? below
		[ -e "$cf" ] && rm "$cf"
d57 2
a58 1
	rm -f "$ypbind_dir/$interface"
d75 3
a77 7
case "$reason" in
PREINIT)
	rm -f "$ypbind_dir/$interface"
	;;
TEST)
	;;
*)
d79 5
a83 1
		make_yp_binding
d87 1
a87 2
	;;
esac
@


1.1.1.1
log
@Import dhcpcd-5.1.4

Changes from dhcpcd-5.1.3 include:
 * dhcpcd logs even in quiet mode.
 * Sleep for 1/100th of a second to give time for kernel to send RELEASE.
 * -S option now works.
 * Only warn about using CSR on bind.
@
text
@@


1.1.1.2
log
@Import dhcpcd-5.2.8 with the following changes from 5.2.4
* Use dynamically sized buffers for reading kernel link events
* Use the active link address
* Added option to dump a lease to stdout
* TEST mode now works correctly if an old lease is NAKed
* routes with the gateway = leased ip are now treated as host routes
@
text
@d4 9
a12 2
: ${ypbind_restart_cmd:="service_command ypbind restart"}
: ${ypbind_stop_cmd:="service_condcommand ypbind stop"}
d73 2
a74 1
if [ "$reason" = PREINIT ]; then
d76 4
a79 1
else if $if_up || $if_down; then
d85 2
a86 1
fi
@


1.1.1.3
log
@Import dhcpcd-5.2.9 with the following changes:
* syntax in 50-ypbind hook has been fixed
* man page corrections
* report hwaddr used by dhcpcd when debug is enabled
* Fix detecting inet address for INFORM support
* document reason RELEASE in dhcpcd-run-hooks
* Support RTM_CHGADDR in the upcoming NetBSD-6
  This is used to work out if the hwaddr has changed as the interface
  does not go down/up unlike other OSes
* ntp hook no longer attempts to restart ntpd if 1st attempt failed
@
text
@d4 2
a5 2
: ${ypbind_restart_cmd:=service_command ypbind restart}
: ${ypbind_stop_cmd:=service_condcommand ypbind stop}
d68 1
a68 1
elif $if_up || $if_down; then
@


1.1.1.4
log
@Import dhcpcd-5.1.12 with the following changes:
* 20-resolv.conf now uses the correct variable for $IF_METRIC
* Exclude interface values when dumping the lease
* Parse static value subnet_mask when it exists instead of deriving from
  ip address
* logger calls now resemble dhcpcd calls to syslog(3)
* Reject offered IP address if INADDR_BROADCAST or INADDR_ANY
* Change the route if source address has changed
* Note the address we are requesting in the broadcast log entry
* When operating on one interface, respect the timeout for in dhcpcd.conf
* Escape | and & characters before passing the value to the shell
  Ensure we set a valid hostname, DNS domain and NIS domain.
  Document the need for input validation in dhcpcd-run-hooks(8).
  Fixes CVE-2011-996
  Based on a patch to dhcpcd-3 by Marius Tomaschewski <mt@@suse.de>
@
text
@d70 1
a70 5
		if valid_domainname "$new_nis_domain"; then
			make_yp_binding
		else
			syslog err "Invalid NIS domain name: $new_nis_domain"
		fi
@


1.1.1.4.6.1
log
@Apply patch (requested by roy in ticket #585):

Update dhcpcd to version 5.6.2.
@
text
@d23 1
a23 1
	echo "$new_nis_domain" >"$ypbind_dir/$ifname"
d28 1
a28 1
		local ncf="$cf.$ifname" x=
d49 1
a49 1
	rm -f "$ypbind_dir/$ifname"
d67 1
a67 1
	rm -f "$ypbind_dir/$ifname"
@


1.1.1.4.4.1
log
@sync with head
@
text
@d23 1
a23 1
	echo "$new_nis_domain" >"$ypbind_dir/$ifname"
d28 1
a28 1
		local ncf="$cf.$ifname" x=
d49 1
a49 1
	rm -f "$ypbind_dir/$ifname"
d67 1
a67 1
	rm -f "$ypbind_dir/$ifname"
@


1.1.1.4.4.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 2
# $NetBSD$

@


1.1.1.5
log
@* Fixed a potential segfault with IPv6 option handling
* Add a suffix to all our config files so that RA never stamps on IPv4
* All valgrind errors fixed on FreeBSD (with ./configure --debug=YES)
* When started with an interface list, respect that with signal handling
* Fix a potential route table corruption if we failed to add a route
@
text
@d23 1
a23 1
	echo "$new_nis_domain" >"$ypbind_dir/$ifname"
d28 1
a28 1
		local ncf="$cf.$ifname" x=
d49 1
a49 1
	rm -f "$ypbind_dir/$ifname"
d67 1
a67 1
	rm -f "$ypbind_dir/$ifname"
@


1.1.1.5.2.1
log
@resync from head
@
text
@a0 2
# $NetBSD$

@


1.1.1.5.2.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d4 1
a4 1
# This script is only suitable for the BSD versions.
d6 2
a7 2
: ${ypbind_restart_cmd:=service_command ypbind restart &}
: ${ypbind_stop_cmd:=service_condcommand ypbind stop &}
a8 3
: ${ypdomain_dir:=/var/yp}
: ${ypdomain_suffix:=.ypservers}

d28 8
a35 2
	if [ -z "$ypdomain_dir" ]; then
		false
d37 2
a38 11
		local cf="$ypdomain_dir/$new_nis_domain$ypdomain_suffix"
		if [ -n "$new_nis_servers" ]; then
			local ncf="$cf.$ifname" x=
			rm -f "$ncf"
			for x in $new_nis_servers; do
				echo "$x" >>"$ncf"
			done
			change_file "$cf" "$ncf"
		else
			[ -e "$cf" ] && rm "$cf"
		fi
a50 1

@


1.1.1.6
log
@Import dhcpcd-6.0.0 with the following changes:
 * DHCPv6 support
 * wpa_supplicant hook script
 * route IPv4 addresses to 127.0.0.1 for machine centric traffic
 * DHCPv6 Prefix Delegation support
 * DHCPv6 FQDN support
 * Control existing IPv4 routes
 * less spamy to syslog by default
 * IPv6 protocols now wait for a valid LL address before starting
 * IPv6 DAD support now listens to kernel for more accurate timings
 * IPv4 code split out more cleanly so dhcpcd can be compiled for
   IPv4, IPv6 or IPv4 AND IPv6
 * MTU is no longer requested by default
 * a DUID is now generated in /etc/dhcpcd.duid and this is used as a
   client ID for DHCPv4 and DHCPv6
   This does mean that you may get new DHCPv4 addresses

Many bugs have also been fixed along the way and this release addresses
the following PR's

PR bin/47364
PR bin/47502
PR bin/47666
PR bin/47699
PR bin/47775
PR bin/47776
@
text
@a0 2
# $NetBSD: $

@


1.1.1.6.4.1
log
@Rebase.
@
text
@d1 1
a1 1
# $NetBSD: 50-ypbind,v 1.1.1.7 2014/06/14 20:51:09 roy Exp $
d4 1
a4 1
# This script is only suitable for the BSD versions.
d6 2
a7 2
: ${ypbind_restart_cmd:=service_command ypbind restart &}
: ${ypbind_stop_cmd:=service_condcommand ypbind stop &}
a8 3
: ${ypdomain_dir:=/var/yp}
: ${ypdomain_suffix:=.ypservers}

d28 8
a35 2
	if [ -z "$ypdomain_dir" ]; then
		false
d37 2
a38 11
		local cf="$ypdomain_dir/$new_nis_domain$ypdomain_suffix"
		if [ -n "$new_nis_servers" ]; then
			local ncf="$cf.$ifname" x=
			rm -f "$ncf"
			for x in $new_nis_servers; do
				echo "$x" >>"$ncf"
			done
			change_file "$cf" "$ncf"
		else
			[ -e "$cf" ] && rm "$cf"
		fi
a50 1

@


1.1.1.7
log
@Import dhcpcd-6.4.0 with the following changes:

  *  Only fork when the RA has a RDNSS option AND a valid prefix OR no DHCPv6 instruction.
  *  Handle BSD per interface rtadv kernel flag.
  *  Add a reject route for the delegated prefix so that unassigned prefixes don't go back upstream.
  *  If not specified, Delegated Prefixes will get an automatic SLA of the interface index. If the biggest SLA and the assigned prefix fits into a /64 then dhcpcd creates a /64 prefix so that SLAAC works. If bigger than /64 is needed then dhcpcd creates one rounded upto the nearest multiple of 8. Unless a configured SLA of 0 is assigned, a reject route for the Delegated Prefix is installed to stop unassigned addresses trying to be resolved upstream. Addresses added from Delegated Prefixes now have a default address suffix of 1 instead of using a SLAAC style address.
  *  Don't spam timezone updates unless its actually changed.
  *  Support ND6_IFF_OVERRIDE_RTADV on BSD.
  *  Document why we don't send both FQDN and hostname options.
  *  Respect RFC4861 MAX_RTR_SOLICITATION_DELAY as specified in section 6.3.7.
  *  RFC2131 section 4.4.1 states the client SHOULD wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. Instead we wait a random time between zero and one second to mirror the more modern IPv6RS and DHCPv6 standards unless overridden by defining RFC2131_STRICT.
  *  Always send a carrier as it's no longer encapsulated in the IPv4 stack. When stopping and not departed, run with the STOPPED reason but do not process it in hooks.
  *  Poll kernel neighbour reachability (SIOCGNBRINFO_IN6) for each router instead of sending and listening for Neighbour Soliciation/Advertisement packets. The kernel is privy to a lot more reachability information than userland is.
  *  Ensure that ND6_IFF_PERFORMNUD is set.
  *  controlgroup option changes group ownership of the control socket.
  *  Should use arc4random_uniform when wanting a randon number between 1 and N. Improve the compat arc4random function a little and re-stir on fork.
  *  -4 and -6 are now mutually exclusive and when running on a single interface per protocol pidfiles are created. This means that other control options suchs as -x and -n will require the -4 or -6 option as well.
  *  Implement Stable Private Addresses for SLAAC as per RFC7217. Enable this as default in dhcpcd.conf.
  *  Log error condition if a new or changed Router Advertisment to avoid spamming the log.
  *  Add an IPv6 link-local address before upping the interface if needed. Bring an interface up when we start it and not during discovery. As such, stop waiting on carrier for a second if we did.
  *  Add gateway option to enable the gateway or an interface/profile. Ensure the option and require options disable the nooption option - last wins.
  *  Restarting ntp/yp are not critical and their initialisation continues in the background as well so we may as well background the restart commands for faster dhcpcd performance.
@
text
@d4 1
a4 1
# This script is only suitable for the BSD versions.
d6 2
a7 2
: ${ypbind_restart_cmd:=service_command ypbind restart &}
: ${ypbind_stop_cmd:=service_condcommand ypbind stop &}
a8 3
: ${ypdomain_dir:=/var/yp}
: ${ypdomain_suffix:=.ypservers}

d28 8
a35 2
	if [ -z "$ypdomain_dir" ]; then
		false
d37 2
a38 11
		local cf="$ypdomain_dir/$new_nis_domain$ypdomain_suffix"
		if [ -n "$new_nis_servers" ]; then
			local ncf="$cf.$ifname" x=
			rm -f "$ncf"
			for x in $new_nis_servers; do
				echo "$x" >>"$ncf"
			done
			change_file "$cf" "$ncf"
		else
			[ -e "$cf" ] && rm "$cf"
		fi
a50 1

@


1.1.1.7.2.1
log
@Pullup the import of dhcpcd-6.6.7, requested by roy in #207
@
text
@d1 1
a1 1
# $NetBSD: 50-ypbind,v 1.6 2014/11/07 20:51:03 roy Exp $
d6 2
a7 2
: ${ypbind_restart_cmd:=service_command ypbind restart}
: ${ypbind_stop_cmd:=service_condcommand ypbind stop}
@


1.1.1.7.2.2
log
@Pull up following revision(s) (requested by roy in ticket #1621):

	external/bsd/dhcpcd/dist/compat/crypt/sha256.c  up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/crypt/md5.c     up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/crypt/md5.h     up to 1.1.1.2
	external/bsd/dhcpcd/dist/compat/crypt/sha256.h  up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/crypt/hmac.c    up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/crypt/hmac.h    up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/_strtoi.h       up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/arc4random.c    up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/arc4random.h    up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/arc4random_uniform.c up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/arc4random_uniform.h up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/bitops.h        up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/dprintf.c       up to 1.1.1.2
	external/bsd/dhcpcd/dist/compat/dprintf.h       up to 1.1.1.2
	external/bsd/dhcpcd/dist/compat/endian.h        up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/pidfile.c       up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/pidfile.h       up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/queue.h         up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/reallocarray.c  up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/reallocarray.h  up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/strtoi.c        up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/strtoi.h        up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/strtou.c        up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/strlcpy.c       up to 1.1.1.1
	external/bsd/dhcpcd/dist/compat/strlcpy.h       up to 1.1.1.1
	external/bsd/dhcpcd/dist/config-null.mk         up to 1.1.1.1
	external/bsd/dhcpcd/dist/configure              up to 1.1.1.8
	external/bsd/dhcpcd/dist/iconfig.mk             up to 1.1.1.1
	external/bsd/dhcpcd/dist/hooks/01-test          up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/02-dump          up to 1.1.1.1
	external/bsd/dhcpcd/dist/hooks/10-wpa_supplicant up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/15-timezone      up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/20-resolv.conf   up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/29-lookup-hostname up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/30-hostname      up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/50-dhcpcd-compat up to 1.1.1.1
	external/bsd/dhcpcd/dist/hooks/50-ntp.conf      up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/50-yp.conf       up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/50-ypbind.in     up to 1.1.1.2
	external/bsd/dhcpcd/dist/hooks/Makefile         up to 1.1.1.1
	external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in up to 1.1.1.4
	external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/GNUmakefile        up to 1.1.1.1
	external/bsd/dhcpcd/dist/src/Makefile           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/arp.c              up to 1.1.1.7
	external/bsd/dhcpcd/dist/src/arp.h              up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/auth.c             up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/auth.h             up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/bpf.c              up to 1.7
	external/bsd/dhcpcd/dist/src/bpf.h              up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/common.c           up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/common.h           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/control.c          up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/control.h          up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/defs.h             up to 1.1.1.15
	external/bsd/dhcpcd/dist/src/dev.c              up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/dev.h              up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcp-common.c      up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/dhcp-common.h      up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcp.c             up to 1.11
	external/bsd/dhcpcd/dist/src/dhcp.h             up to 1.1.1.6
	external/bsd/dhcpcd/dist/src/dhcp6.c            up to 1.1.1.12
	external/bsd/dhcpcd/dist/src/dhcp6.h            up to 1.1.1.6
	external/bsd/dhcpcd/dist/src/dhcpcd-definitions-small.conf up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd-definitions.conf up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c.in up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h.in up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd.8.in        up to 1.1.1.10
	external/bsd/dhcpcd/dist/src/dhcpcd.c           up to 1.13
	external/bsd/dhcpcd/dist/src/dhcpcd.conf        up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in   up to 1.1.1.10
	external/bsd/dhcpcd/dist/src/dhcpcd.h           up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/duid.c             up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/duid.h             up to 1.1.1.1
	external/bsd/dhcpcd/dist/src/eloop.c            up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/eloop.h            up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/genembedc          up to 1.1.1.1
	external/bsd/dhcpcd/dist/src/genembedh          up to 1.1.1.1
	external/bsd/dhcpcd/dist/src/if-bsd.c           up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/if-linux-wext.c    up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/if-linux.c         up to 1.1.1.10
	external/bsd/dhcpcd/dist/src/if-options.c       up to 1.10
	external/bsd/dhcpcd/dist/src/if-options.h       up to 1.1.1.7
	external/bsd/dhcpcd/dist/src/if-sun.c           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/if.c               up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/if.h               up to 1.1.1.5
	external/bsd/dhcpcd/dist/src/ipv4.c             up to 1.1.1.9
	external/bsd/dhcpcd/dist/src/ipv4.h             up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/ipv4ll.c           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/ipv4ll.h           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/ipv6.c             up to 1.1.1.11
	external/bsd/dhcpcd/dist/src/ipv6.h             up to 1.1.1.7
	external/bsd/dhcpcd/dist/src/ipv6nd.c           up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/ipv6nd.h           up to 1.1.1.6
	external/bsd/dhcpcd/dist/src/logerr.c           up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/logerr.h           up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/route.c            up to 1.1.1.8
	external/bsd/dhcpcd/dist/src/route.h            up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/sa.c               up to 1.1.1.3
	external/bsd/dhcpcd/dist/src/sa.h               up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/script.c           up to 1.1.1.4
	external/bsd/dhcpcd/dist/src/script.h           up to 1.1.1.2
	external/bsd/dhcpcd/dist/src/dev/Makefile       up to 1.1.1.1
	external/bsd/dhcpcd/dist/src/dev/udev.c         up to 1.1.1.2
	external/bsd/dhcpcd/dist/tests/crypt/.gitignore up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/crypt/GNUmakefile up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/crypt/Makefile   up to 1.1.1.2
	external/bsd/dhcpcd/dist/tests/crypt/README.md  up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/crypt/run-test.c up to 1.1.1.2
	external/bsd/dhcpcd/dist/tests/crypt/test.h     up to 1.1.1.2
	external/bsd/dhcpcd/dist/tests/crypt/test_hmac_md5.c up to 1.1.1.3
	external/bsd/dhcpcd/dist/tests/Makefile         up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/eloop-bench/.gitignore up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/eloop-bench/Makefile up to 1.1.1.2
	external/bsd/dhcpcd/dist/tests/eloop-bench/README.md up to 1.1.1.1
	external/bsd/dhcpcd/dist/tests/eloop-bench/eloop-bench.c up to 1.1.1.3
	external/bsd/dhcpcd/dist/.arcconfig             up to 1.1.1.1
	external/bsd/dhcpcd/dist/.gitignore             up to 1.4
	external/bsd/dhcpcd/dist/BUILDING.md            up to 1.1.1.2
	external/bsd/dhcpcd/dist/LICENSE                up to 1.1.1.2
	external/bsd/dhcpcd/dist/Makefile               up to 1.1.1.5
	external/bsd/dhcpcd/dist/Makefile.inc           up to 1.1.1.2
	external/bsd/dhcpcd/dist/README.md              up to 1.1.1.3
	external/bsd/dhcpcd/dist/bpf-filter.h           delete
	external/bsd/dhcpcd/dist/common.c               delete
	external/bsd/dhcpcd/dist/arp.c                  delete
	external/bsd/dhcpcd/dist/arp.h                  delete
	external/bsd/dhcpcd/dist/auth.c                 delete
	external/bsd/dhcpcd/dist/auth.h                 delete
	external/bsd/dhcpcd/dist/dhcpcd.c               delete
	external/bsd/dhcpcd/dist/control.c              delete
	external/bsd/dhcpcd/dist/common.h               delete
	external/bsd/dhcpcd/dist/config.h               delete
	external/bsd/dhcpcd/dist/dhcp-common.c          delete
	external/bsd/dhcpcd/dist/control.h              delete
	external/bsd/dhcpcd/dist/defs.h                 delete
	external/bsd/dhcpcd/dist/dev.h                  delete
	external/bsd/dhcpcd/dist/dhcpcd-definitions.conf delete
	external/bsd/dhcpcd/dist/dhcp-common.h          delete
	external/bsd/dhcpcd/dist/dhcp.c                 delete
	external/bsd/dhcpcd/dist/dhcp.h                 delete
	external/bsd/dhcpcd/dist/dhcp6.c                delete
	external/bsd/dhcpcd/dist/dhcp6.h                delete
	external/bsd/dhcpcd/dist/dhcpcd-run-hooks.8.in  delete
	external/bsd/dhcpcd/dist/dhcpcd-embedded.c      delete
	external/bsd/dhcpcd/dist/dhcpcd.8.in            delete
	external/bsd/dhcpcd/dist/dhcpcd-embedded.c.in   delete
	external/bsd/dhcpcd/dist/dhcpcd-embedded.h      delete
	external/bsd/dhcpcd/dist/dhcpcd-embedded.h.in   delete
	external/bsd/dhcpcd/dist/ipv4.c                 delete
	external/bsd/dhcpcd/dist/if.c                   delete
	external/bsd/dhcpcd/dist/dhcpcd-run-hooks.in    delete
	external/bsd/dhcpcd/dist/dhcpcd.h               delete
	external/bsd/dhcpcd/dist/dhcpcd.conf            delete
	external/bsd/dhcpcd/dist/dhcpcd.conf.5.in       delete
	external/bsd/dhcpcd/dist/duid.c                 delete
	external/bsd/dhcpcd/dist/duid.h                 delete
	external/bsd/dhcpcd/dist/eloop.c                delete
	external/bsd/dhcpcd/dist/eloop.h                delete
	external/bsd/dhcpcd/dist/if-bsd.c               delete
	external/bsd/dhcpcd/dist/if-options.c           delete
	external/bsd/dhcpcd/dist/if-options.h           delete
	external/bsd/dhcpcd/dist/if.h                   delete
	external/bsd/dhcpcd/dist/crypt/hmac_md5.c       delete
	external/bsd/dhcpcd/dist/crypt/crypt.h          delete
	external/bsd/dhcpcd/dist/ipv4.h                 delete
	external/bsd/dhcpcd/dist/ipv4ll.c               delete
	external/bsd/dhcpcd/dist/ipv6.c                 delete
	external/bsd/dhcpcd/dist/ipv4ll.h               delete
	external/bsd/dhcpcd/dist/ipv6.h                 delete
	external/bsd/dhcpcd/dist/ipv6nd.c               delete
	external/bsd/dhcpcd/dist/ipv6nd.h               delete
	external/bsd/dhcpcd/dist/script.c               delete
	external/bsd/dhcpcd/dist/script.h               delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/15-timezone delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/01-test   delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/02-dump   delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/10-mtu    delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/10-wpa_supplicant delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/20-resolv.conf delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/29-lookup-hostname delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/30-hostname delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/50-ntp.conf delete
	external/bsd/dhcpcd/dist/dhcpcd-hooks/50-ypbind delete
	usr.sbin/postinstall/postinstall: revision 1.211-1.213
	etc/rc.d/dhcpcd					upto 1.5
	doc/3RDPARTY					manual edit

Import dhcpcd-7.0.7.
Adjust postinstal and rc file.
@
text
@d1 1
a1 1
# $NetBSD: 50-ypbind,v 1.1.1.7.2.1 2014/12/29 16:18:05 martin Exp $
@


1.1.1.8
log
@Import dhcpcd-6.4.4 with the following changes:
  *  Many bounds checking fixes from Tobias Stoeckmann
  *  Improve error when the authentication token cannot be found
  *  close the IPv4 specific UDP socket when done sending
  *  Implemented a write queue to the control sockets
  *  Only send interfaces to control sockets when in a BOUND state
  *  Add a sample controlgroup directive to dhcpcd.conf to make setup easier
  *  Add variables if_oneup and if_ipwaited so hook scripts know the overall
     state of dhcpcd better
  *  Pass RC_SVCNAME from enviromment to hooks so that a service hook can
     know it's name (may not be dhcpcd)
  *  Document every variable set for dhcpcd-run-hooks(8)
  *  Allow SSIDs with non printable characters to be used in ssid selection
     in dhcpcd.conf
  *  Add an unprivileged control socket so that normal users can obtain
     dhcpcd running state
@
text
@d6 2
a7 2
: ${ypbind_restart_cmd:=service_command ypbind restart}
: ${ypbind_stop_cmd:=service_condcommand ypbind stop}
@


1.1.1.9
log
@Import dhcpcd-6.6.1 with the following changes:
  *  Improve handling of the IPv6LL address at startup
  *  Support old Linux kernels where IFLA_AF_SPEC may not exist
  *  When stopping interfaces, skip past pseudo interfaces instead
     of finding the master as only the masters are sorted correctly

RCSIDs have been removed from the import and will be added afterwards
as patches as technically they are not part of the dhcpcd project directly.
Hopefully this will be future imports less painful.
@
text
@d1 1
a1 1

@


1.1.1.10
log
@Reimport dhcpcd-6.6.1 with correct hooks
@
text
@d1 2
@


1.1.1.11
log
@Import dhcpcd-6.8.0 with the following changes:
  *  Use the exit code of EXIT_SUCCESS when terminating gracefully.
  *  Fix dumping a lease file by filename.
  *  If RTF_LOCAL is defined, don't try and set loopback routes.
  *  Fix adding host routes on BSD.
  *  After adding an address load the kernel routing table for the
     interface. When routes are rebuilt try not to remove any existing
     routes if they don't need changing.
  *  Replace timeval with timespec for our internal functions.
  *  Support kqueue(2).
  *  Better support for more interface types on BSD, thanks to Guy Yur.
  *  Many Prefix Delegation fixes.
  *  Fix creation of normal IPv6 link-local addresses overflowing the
     address storage and fooling dhcpcd into thinking it's not
     tentative when added.
  *  Add own syslog(3) like logging function for a nicer output and so
     we can log to a file for the case when syslogd(8) starts after
     dhcpcd so we can log any errors during system start using the new
     --logfile option.
@
text
@d15 3
a17 4
	for i in "$ypbind_dir/$interface_order".*; do
		if [ -f "$i" ]; then
			cat "$i"
			return 0
d27 1
d45 1
a45 2
	local nd="$(best_domain)"
	if [ $? = 0 -a "$nd" != "$(domainname)" ]; then
d74 1
a74 1
	rm -f "$ypbind_dir/$interface".*
@


