From e94cf198efec5862a3979bdc47157bd3f33e8244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 30 Jul 2018 07:30:53 +0200 Subject: preserve order of pushed parameters in update-resolv-conf --- debian/update-resolv-conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'debian/update-resolv-conf') diff --git a/debian/update-resolv-conf b/debian/update-resolv-conf index fc2f031..5bebaa4 100644 --- a/debian/update-resolv-conf +++ b/debian/update-resolv-conf @@ -30,7 +30,8 @@ case "$script_type" in up) NMSRVRS="" SRCHS="" - for optionvarname in ${!foreign_option_*} ; do + foreign_options=$(printf '%s\n' ${!foreign_option_*} | sort -t _ -k 3 -g) + for optionvarname in ${foreign_options} ; do option="${!optionvarname}" echo "$option" split_into_parts $option -- cgit v1.2.3